With which will 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With