[Dojo-interest] Custom "dojo.js" much bigger than pre-built!
Robert Coup
robert.coup at onetrackmind.co.nz
Wed Jan 24 16:04:41 MST 2007
Bailo, John wrote:
> One test I did was to comment out the called methods in my init()
> function run as a dojo.onLoad().
>
> It did not make a difference in speed of the page fully loading!
>
> So I am guessing all the lag from calling the URL to having a page is in
> loading dojo.js itself...
>
You could do some timing. From when the last <script> tag on the page is
called eg. (<script>alert('start @ ' + (new
Date()).valueOf());</script>) to when any dojo.addOnLoad() functions are
ended is the startup time. Before that is (nearly all) the load time
(which you could put a similar alert() as the first script tag).
A *lot* of time can be spent creating widgets, which is something we're
working hard to improve.
Firebug profiling may help you figure out what's going on too.
Rob :)
--
One Track Mind Ltd.
PO Box 1604, Shortland St, Auckland, New Zealand
Phone +64-9-966 0433 Mobile +64-21-572 632
Web http://www.onetrackmind.co.nz
More information about the Dojo-interest
mailing list