[wp-trac] [WordPress Trac] #22244: jQuery should register in footer by default
WordPress Trac
noreply at wordpress.org
Tue Oct 23 21:59:16 UTC 2012
#22244: jQuery should register in footer by default
-------------------------+----------------------
Reporter: ryanve | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Performance | Version:
Severity: normal | Resolution: wontfix
Keywords: 2nd-opinion |
-------------------------+----------------------
Comment (by scribu):
> This would break because jQuery would be forced to the footer, while the
other script would print in the header:
{{{
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'something-that-uses-jquery', 'something-that-uses-
jquery.js' );
}}}
I was thinking more of scripts that didn't use `wp_enqueue_script()` at
all, but yeah, I've seen this pattern enough times to agree with you that
it wouldn't be a good idea.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22244#comment:24>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list