Cache global-styles #25678
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Performance
Related to performance efforts
In FSE themes global styles are coming from the theme's
theme.json
file, and overall we have 3 sources of styles:These don't change on each page-load and could be cached to improve performance. We don't need to parse the JSON file from the theme on each page-load (unless we're currently developing a theme), or generate the CSS again and again.
We could cache the resulting CSS if
WP_DEBUG
is set to falseSCRIPT_DEBUG
is set to falseThe text was updated successfully, but these errors were encountered: