[wp-trac] Re: [WordPress Trac] #9071: Load scripts in footer option

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 9 03:41:54 GMT 2009


#9071: Load scripts in footer option
-----------------------------+----------------------------------------------
 Reporter:  robertaccettura  |        Owner:  anonymous
     Type:  enhancement      |       Status:  new      
 Priority:  normal           |    Milestone:  2.8      
Component:  Optimization     |      Version:           
 Severity:  normal           |   Resolution:           
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by azaozz):

 This is already enabled with the updates to script loader:
 http://wpdevel.wordpress.com/2009/02/06/script-loader-updates/

 Loading jQuery in the footer is not advisable as that delays the
 jQuery(document).ready() call. This would normally run "onDomReady"
 letting the script execute and manipulate the DOM in parallel with loading
 the rest of the page (usually images).

 There's a nice visual representation of this in Firebug's Net tab, where
 "DOMContentLoaded" and "load" events are clearly marked.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/9071#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list