[wp-trac] [WordPress Trac] #58480: Inline render blocking CSS `classic-themes.css'

WordPress Trac noreply at wordpress.org
Fri Jun 16 13:26:52 UTC 2023


#58480: Inline render blocking CSS `classic-themes.css'
------------------------------+-------------------------------
 Reporter:  adamsilverstein   |       Owner:  spacedmonkey
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.3
Component:  Themes            |     Version:  6.1
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  css, performance
------------------------------+-------------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55930" 55930]:
 {{{
 #!CommitTicketReference repository="" revision="55930"
 Themes: Inline render blocking CSS `classic-themes.css'

 Since [54358], a new CSS file classic-themes.css is enqueued on all pages
 on the front end of themes without `theme.json`. This is a blocking http
 request, the impact on performance will be affected by network conditions.
 Inlining this style, stops this blocking request. By adding style data of
 path to the registered style, the function `wp_maybe_inline_styles` will
 automatically inline the style for us.

 Props spacedmonkey, adamsilverstein.
 Fixes #58480.
 }}}

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


More information about the wp-trac mailing list