dynamic
dynamic

Reputation: 48101

specifying a window.onload interferes with jQuery.ready?

Before loading jquery.js, I have a simple:

window.onload = function (){ /*dosomething*/ }

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

Thanks

Upvotes: 2

Views: 334

Answers (1)

jAndy
jAndy

Reputation: 236022

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.

Upvotes: 3

Related Questions