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

WordPress Trac noreply at wordpress.org
Sun Nov 22 22:04:24 UTC 2015


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

Comment (by peterwilsoncc):

 Related ticket for Chrome:
 [https://code.google.com/p/chromium/issues/detail?id=481122 Allow the page
 to render before <link> tags in body]

 > We block rendering the entire page until the CSS has loaded. IE will
 allow content before the <link> to render, and block afterwards. Firefox
 is similar to IE, but overshoots slightly (the "Hulk Hogan" heading is
 after the <link>) revealing unstyled content.
 >
 > IE is winning this one, can we copy them?
 >
 > Developers are currently having to hack around our behaviour here, eg
 https://github.com/filamentgroup/loadCSS

 Regardless of the spec, browsers can deal with CSS in the body as WP
 currently supplies it and are improving their behaviour. It's not pretty
 but letting devs learn is important.

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


More information about the wp-trac mailing list