Difference between $(document).ready and $(window).load

You are here because you are not satisfied with the answers from other forums as they described it in detail and offcourse we don’t have time to read it at all.

You are still confused what they actually do and WHEN, right?


It means your document or page is capable of executing your javscript/jQuery functions.

For Example
alert("It will load as soon as document is capable of executing it");


It means your document is ready to execute javascripts but they are execute after whole page is loaded. For Example
alert("It will load after page is loaded");