Login Register

DOMContentLoaded now the onload event for Dojo

This last weekend I finally implemented Dean Edwards' DOMContentLoaded (with Matthias Miller and John Resig) solution for the dojo.addOnLoad event, as opposed to using the window.onload event to fire all initialization...and so far (with the exception of some minor side effects, notably with widgets that use images for layout) it is working very well--and the bottleneck of initial load performance (you know, where the page seems to take forever to load) has been markedly improved. It's almost like night and day, in some respects. Please feel free to try it out by grabbing the latest SVN head, and letting us know what you think!

Yes, it will. There may be

Yes, it will. There may be some shakeout that has to go on first, and there may be some distinctions made in the future between the dojo.addOnLoad and window.onload (which are now two separate events, and both may end up being used by Dojo) but otherwise this should remain in the codebase.

Really, really cool Tom. I

Really, really cool Tom. I can't wait for this update to go in production. Will this make the 0.4 release?

[...] The startup time of

[...] The startup time of Dojo has improved, and it it due to DOMContentLoaded now being the onload event. This last weekend I finally implemented Dean Edwards’ DOMContentLoaded (with Matthias Miller and John Resig) solution for the dojo.addOnLoad event, as opposed to using the window.onload event to fire all initialization…and so far (with the exception of some minor side effects, notably with widgets that use images for layout) it is working very well–and the bottleneck of initial load performance (you know, where the page seems to take forever to load) has been markedly improved. [...]

...and when is 0.4 due?

...and when is 0.4 due?

0.4 is due in mid-late

0.4 is due in mid-late October. In the interim, nightly builds and SVN HEAD are of course available.

Thanx Dylan. Couldn't find

Thanx Dylan. Couldn't find the information anywhere. Looking forward to mid-late october then....