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

WordPress Trac noreply at wordpress.org
Mon Jan 16 23:07:43 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 scruffian):

 Absolutely. The original intention was to add this to another CSS file
 that is built by Gutenberg. This is how I tried to do it at first with
 https://github.com/WordPress/wordpress-develop/pull/3481, but we were
 having problems loading the built CSS file in core, and we were running
 short of time, so we went for the separate CSS file as a quick solution
 for the release to avoid breaking everyone's buttons. If we can just
 change it to an inline style that would be fine IMO.

 Related there's also this performance enhancement:
 https://github.com/WordPress/gutenberg/pull/45063

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


More information about the wp-trac mailing list