[wp-trac] [WordPress Trac] #61395: Enqueue block custom CSS only when block renders on the page.
WordPress Trac
noreply at wordpress.org
Fri Jun 7 01:42:21 UTC 2024
#61395: Enqueue block custom CSS only when block renders on the page.
---------------------------+-----------------------------
Reporter: isabel_brison | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.7
Component: Editor | Version: trunk
Severity: normal | Keywords: gutenberg-merge
Focuses: css |
---------------------------+-----------------------------
Currently, block-specific custom CSS defined in theme.json or the global
styles UI gets enqueued whether the block is on the page or not.
Custom CSS logic needs to be updated to more closely follow that of other
global styles, so that block custom CSS can be enqueued conditionally in
the same way as block global styles currently are.
Some of the changes from https://github.com/WordPress/gutenberg/pull/62357
can be brought into core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61395>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list