[wp-trac] [WordPress Trac] #56990: Render blocking CSS `classic-themes.css` unnecessarily enqueued

WordPress Trac noreply at wordpress.org
Mon Jan 16 19:35:23 UTC 2023


#56990: Render blocking CSS `classic-themes.css` unnecessarily enqueued
-------------------------------------+-------------------------------
 Reporter:  adamsilverstein          |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  6.1.2
Component:  Themes                   |     Version:  6.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  css, performance
-------------------------------------+-------------------------------

Comment (by flixos90):

 @adamsilverstein @Mamaduka @scruffian Chiming in here after a while: It
 seems those styles are indeed needed, that makes sense. However, the
 performance concern here is really the additional request.

 Those few lines of CSS do not justify loading a separate CSS file, they
 should rather be printed in an inline `<style>` tag IMO. Using an inline
 style tag would pretty much alleviate the performance concerns, as the CSS
 itself is extremely little to parse. WDYT?

 If you agree, it should be fairly straightforward to do that in a PR.

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


More information about the wp-trac mailing list