[wp-trac] [WordPress Trac] #36391: Create a hook to handle dynamic CSS?

WordPress Trac noreply at wordpress.org
Fri Jul 15 15:08:32 UTC 2022

#36391: Create a hook to handle dynamic CSS?
 Reporter:  CarlosRios       |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Script Loader    |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  close            |     Focuses:  performance
Changes (by desrosj):

 * keywords:   => close
 * milestone:   => Awaiting Review


 I'm going to add a `close` suggestion.

 Dynamically creating a CSS file seems like it would be bad for performance
 and it would also create new and different potential caching problems.

 The [https://core.trac.wordpress.org/browser/tags/6.0/src/wp-
 includes/theme.php#L1952 additional CSS feature has a filter hook] that
 can be used to add needed CSS to a page. Since this ticket was created,
 the block editor and the [https://developer.wordpress.org/block-editor
 /how-to-guides/themes/theme-json/ concept of global styles & settings].

 I'll return in a few months to close this out, unless anyone can spend
 time investigating what this request would look like in WordPress today
 and how it differs from what's available.

Ticket URL: <https://core.trac.wordpress.org/ticket/36391#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list