What is the difference between $(window).load and $(document).ready?
Answer / Avinash Shahi
`$(document).ready()` executes as soon as the Document Object Model (DOM) is ready for manipulation, while `$(window).load()` waits for all elements (including images, scripts etc.) to be fully loaded. In most cases, `$(document).ready()` should be used instead of `$(window).load()`, as it is faster.
| Is This Answer Correct ? | 0 Yes | 0 No |
Do we need to add jQuery file in both Master and Content page?
Explain the difference between event.preventdefault and "return false"? : jquery mobile
What are the advantages of minified version of jquery?
Whether we need to add jQuery file in both Master and Content page?
Which is the fastest selector in jQuery?
With jquery ui 1.7 being released in the last few days, what do you see as the key parts of jquery ui 1.7? What are you most proud of out of that release?
Change the url for a hyperlink using jquery?
How can related code be encapsulated? Give example.
Tell me how to check data type of any variable in jquery? : jquery mobile
Please explain remove class jquery with example?
Explain .bind() vs .live() vs .delegate() vs .on()
Is it too early to discuss jquery ui 1.8?