What is the difference between $(window).ready and $(document).ready in jquery. Both variants works.
Asked
Active
Viewed 43 times
0
-
This is not duplicate. I ask about $(window).ready (not about window.onload) – Mr.White Aug 03 '16 at 09:12
-
`ready()` is not meant to be applied to `window`. Issuing `$(window).ready()` will not lead to anything good. – Frédéric Hamidi Aug 03 '16 at 09:22
-
Maybe for now. Maybe in the specific version of jQuery you're using. There are no guarantees. – Frédéric Hamidi Aug 03 '16 at 09:59