[wp-trac] [WordPress Trac] #63887: Add sourceURL to inline scripts and styles
WordPress Trac
noreply at wordpress.org
Mon Sep 8 11:25:57 UTC 2025
#63887: Add sourceURL to inline scripts and styles
--------------------------------------+------------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Script Loader | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: javascript, css
--------------------------------------+------------------------------
Changes (by jonsurrell):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"60719" 60719]:
{{{
#!CommitTicketReference repository="" revision="60719"
Script Loader: Add sourceURL to inline scripts and styles.
Improve the source locations referenced by developer tooling in supporting
browsers. Inline source locations are named like inline:handle-js-after
and appear in the developer tools "sources" panel.
This is the second attempt to add sourceURL comments. The first attempt in
[60685] was reverted due to an issue with script concatenation that has
been addressed.
Developed in https://github.com/WordPress/wordpress-develop/pull/9672.
Follow-up to [60685], [60690].
Props jonsurrell, westonruter, wildworks, peterwilsoncc, johnbillion,
tobiasbg.
Fixes #63887.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63887#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list