[wp-trac] [WordPress Trac] #56990: Render blocking CSS `classic-themes.css` unnecessarily enqueued
WordPress Trac
noreply at wordpress.org
Tue Nov 15 18:30:03 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 Mamaduka):
@scruffian, the core data or presets are available for classic and block
themes. I just tested this with the Twenty Ten theme and added the
following code to the `wp-includes/theme.json` style config.
{{{
"blocks": {
"core/button": {
"color": {
"text": "#ffffff",
"background": "#9b51e0"
},
"spacing": {
"padding": "calc(0.667em + 2px) calc(1.333em +
2px)"
}
}
},
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56990#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list