[wp-trac] [WordPress Trac] #56990: Render blocking CSS `classic-themes.css` unnecessarily enqueued
WordPress Trac
noreply at wordpress.org
Mon Nov 14 10:44:29 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):
Thanks for looking at this. There are a few things to consider:
1. Does `has_block( 'button' )` work for buttons in templates as well as
in post content?
2. There is no need for a totally different file here. Originally this CSS
was added to the blocks css that Gutenberg generates, but we had trouble
with the unit tests, which is why we went this route (see
https://github.com/WordPress/wordpress-develop/pull/3481).
I'm sure there's a lot we can do to improve this. Thanks to everyone for
their help.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56990#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list