[wp-trac] [WordPress Trac] #30579: wp_enqueue_style in footer

WordPress Trac noreply at wordpress.org
Thu Dec 18 17:08:05 UTC 2014


#30579: wp_enqueue_style in footer
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Script Loader                        |  Review
 Severity:  normal                               |     Version:  2.6
 Keywords:  good-first-bug has-patch needs-      |  Resolution:
  testing                                        |     Focuses:  template,
                                                 |  performance
-------------------------------------------------+-------------------------

Comment (by kevdotbadger):

 I think the point is that you're allowed `<link>`s in the body, so there
 might be a reason why a template author wants to load it in the `<body>`.
 It's another great WP inconsistency, you have the `in-footer` option when
 loading scripts, but that option is missing from this loader, dispute
 there being a method in the loader to do just that.

 Another solution would be to ignore anything that's queued after
 `wp_head()`, and actually use an `in-footer` option to place `<link>`s in
 the footer. But I think that'll break backwards compatibility.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30579#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list