[wp-trac] [WordPress Trac] #61395: Enqueue block custom CSS only when block renders on the page.
WordPress Trac
noreply at wordpress.org
Wed Jul 30 04:22:54 UTC 2025
#61395: Enqueue block custom CSS only when block renders on the page.
---------------------------------------+----------------------------
Reporter: isabel_brison | Owner: isabel_brison
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.7
Component: Editor | Version: 6.6
Severity: normal | Resolution: fixed
Keywords: gutenberg-merge has-patch | Focuses: css
---------------------------------------+----------------------------
Comment (by westonruter):
In [changeset:"60522" 60522]:
{{{
#!CommitTicketReference repository="" revision="60522"
Customize: Enable Customizer live previews of Custom CSS in Block Themes.
In a Block Theme, the Custom CSS from the Customizer is inserted into the
global styles, before the global style's Custom CSS. In order to update
the Customizer's Custom CSS inside of the global styles, milestone CSS
comments are added in the preview so that the live preview logic can do
the replacement.
Follow-up to [55192], [58703].
See #57536, #61395.
Props westonruter, wildworks, peterwilsoncc, rollybueno, SirLouen,
poojapadamad, rafiq91, audrasjb.
Fixes #63589.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61395#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list