Return to Snippet

Revision: 28031
at June 29, 2010 23:51 by jonkemp


Initial Code
$(window).load(function(){
	// jQuery functions to initialize after the page has loaded.
});

Initial URL
http://www.artzstudio.com/2009/04/jquery-performance-rules/

Initial Description
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 <iframe>  content) have downloaded.

Initial Title
jQuery $(window).load

Initial Tags
javascript, jquery

Initial Language
JavaScript