[wp-trac] [WordPress Trac] #19979: Load jQuery on the front end for logged-in users

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 6 22:43:32 UTC 2012


#19979: Load jQuery on the front end for logged-in users
-------------------------+----------------------------
 Reporter:  azaozz       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Future Release
Component:  Toolbar      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+----------------------------
 This will let us simplify the toolbar JS and improve user experience:
 hoverIntent, additions by plugins that require jQuery, etc.

 jQuery can be loaded in two different ways:

 - Directly, by enqueueing it with script_loader and then adding `wpjq =
 jQuery.noConflict(true);` where `true` means other version of jQuery will
 be left with the globals.

 - By outputting some JS at the very end of 'wp_footer'. This JS would be
 able to check whether jQuery is already loaded and if not, load it by
 appending a `<script src="...">` tag to the head (note that this method
 would load jQuery asynchronously).

 Previous discussion in some of the comments on #18758.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19979>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list