/ Published in: JavaScript

Although $(document).ready is incredibly useful, it occurs during page render while objects are still downloading. You can reduce CPU utilization during the page load by binding your jQuery functions to the $(window).load event, which occurs after all objects called by the HTML (including content) have downloaded.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(window).load(function(){ // jQuery functions to initialize after the page has loaded. });
URL: http://www.artzstudio.com/2009/04/jquery-performance-rules/
Comments
