MooTools: domready vs load
With which w开发者_如何学Pythonill function(){} fire first?
A) window.addEvent('domready', function(){});
B) window.addEvent('load', function(){});
domready will fire first.
http://demos111.mootools.net/DomReadyVS.Load
domready comes first as load waits till everything on the page is loaded before executing.
精彩评论