开发者

specifying a window.onload interferes with jQuery.ready?

开发者 https://www.devze.com 2023-02-18 14:37 出处:网络
Before loading jquery.js, I have a simple: window.onloa开发者_如何学God = function (){ /*dosomething*/ }

Before loading jquery.js, I have a simple:

window.onloa开发者_如何学God = function (){ /*dosomething*/ }

Do you know if that can interfere with $.ready or jQuery in general?

Thanks


No problem with that at all. But be aware that the window.onload event will most likely fire after DOMContentReady (jQuery.ready()).

window.onload does fire after all images, iframes etc. were loaded.

0

精彩评论

暂无评论...
验证码 换一张
取 消