[wp-trac] [WordPress Trac] #56990: Render blocking CSS `classic-themes.css` unnecessarily enqueued
WordPress Trac
noreply at wordpress.org
Fri Feb 3 20:36:26 UTC 2023
#56990: Render blocking CSS `classic-themes.css` unnecessarily enqueued
-------------------------------------+-------------------------------
Reporter: adamsilverstein | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Themes | Version: 6.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: css, performance
-------------------------------------+-------------------------------
Comment (by adamsilverstein):
> The CSS for block themes does need to be output more generally because
it's not just used for button blocks, but all buttons that contain
buttons.
I think you mean "all **pages** that contain buttons", right?
I guess block themes can do this because they "pre" parse the content;
classic themes don't do this though so I wonder how or if we could
introduce the conditional logic there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56990#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list