[wp-trac] [WordPress Trac] #50328: Enqueue script and style assets only for blocks present on the page
WordPress Trac
noreply at wordpress.org
Fri Oct 10 04:17:38 UTC 2025
#50328: Enqueue script and style assets only for blocks present on the page
-------------------------------------------------+-------------------------
Reporter: aduth | Owner: gziolo
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.8
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests has-dev- | Focuses: javascript
note |
-------------------------------------------------+-------------------------
Comment (by westonruter):
In [changeset:"60920" 60920]:
{{{
#!CommitTicketReference repository="" revision="60920"
Script Loader: Use original stylesheet URL for `sourceURL` when inlined.
For inline styles which had been inlined from registered external
stylesheets via `wp_maybe_inline_styles()`, this defers to using the
original stylesheet URL for the `sourceURL` as opposed to fabricating one
from the stylesheet handle. This makes the `sourceURL` much more useful
for debugging, as it indicates where the stylesheet is located. This
allows a developer to make a change to the CSS more easily.
Developed in https://github.com/WordPress/wordpress-develop/pull/10177.
Follow-up to [50836].
Props westonruter, mukesh27, gziolo.
See #50328, #52620.
Fixes #63887.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50328#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list