When to use $(document).ready() and when $(window).load() in jQuery?
Answers
Answered by
1
The purpose of the ready event is that it should occur as early as possible after the document has loaded, so that code that adds functionality to the elements in the page doesn't have to wait for all content to load. jQuery(document).ready(function(){ });
Similar questions