With which will function(){} fire first?
A) window.addEvent('domready', function(){});
B) window.addEvent('load', function(){});
With which will function(){} fire first?
A) window.addEvent('domready', function(){});
B) window.addEvent('load', function(){});
domready will fire first.
domready comes first as load waits till everything on the page is loaded before executing.
© 2022 - 2024 — McMap. All rights reserved.