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

WordPress Trac noreply at wordpress.org
Mon Nov 14 19:01:04 UTC 2022


#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):

 These style originally existed in the button block itself. They were moved
 to the block.json of the button block, which meant that they were no
 longer output for classic themes, hence the need for this additional CSS.
 I think it needs to be added to all classic themes when a button block is
 present in either the content or elsewhere on the page. I don't have any
 opinion about how the CSS is added.

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


More information about the wp-trac mailing list