[wp-trac] [WordPress Trac] #63007: Bundled themes: Stylesheets for block themes are missing path data for inlining

WordPress Trac noreply at wordpress.org
Thu Apr 3 01:54:47 UTC 2025


#63007: Bundled themes: Stylesheets for block themes are missing path data for
inlining
-----------------------------------+-------------------------------
 Reporter:  westonruter            |       Owner:  westonruter
     Type:  enhancement            |      Status:  accepted
 Priority:  normal                 |   Milestone:  6.9
Component:  Bundled Theme          |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  css, performance
-----------------------------------+-------------------------------

Comment (by westonruter):

 Replying to [comment:32 poena]:
 > Minifying the stylesheet files does not tell us if inlining the styles
 by using theme.json is faster.

 Oh, and I'm not sure what you mean by `theme.json` here. I'm referring to
 actual CSS files that are being enqueued. Do you mean the theme
 stylesheets could be eliminated in favor of `theme.json`? If that's
 possible then that would seem even better, as those styles would also be
 inlined already as part of `STYLE#global-styles-inline-css`, right? So the
 end result would be the same.

 This would eliminate the need for the CSS in these stylesheets:

 * https://github.com/WordPress/wordpress-develop/blob/6.7.2/src/wp-
 content/themes/twentytwentytwo/style.css
 * https://github.com/WordPress/wordpress-develop/blob/6.7.2/src/wp-
 content/themes/twentytwentyfive/style.css

 And so then there would not be a need to add any `path` data to these
 stylesheets, since they would no longer be enqueued anyway.

 Still, there are other styles that could be inlined like for non-block
 themes that don't use `theme.json` (#58519), so there are other registered
 newly-minified stylesheets that should have `path` data added to them so
 that they could potentially be inlined. Again, whether or not they would
 get inlined would depend in part on whether #63018 shows that the
 `styles_inline_size_limit` should be increased. But at least it would then
 become a possibility.

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


More information about the wp-trac mailing list