[wp-trac] [WordPress Trac] #64369: Disable sourceURL Comments
WordPress Trac
noreply at wordpress.org
Fri Dec 5 22:26:12 UTC 2025
#64369: Disable sourceURL Comments
-------------------------+-----------------------------
Reporter: anton7249 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Hi,
There is sourceURL= now in styles tags, that can not be disabled.
{{{
<style id='wp-img-auto-sizes-contain-inline-css'>
img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px
1500px}
/*# sourceURL=wp-img-auto-sizes-contain-inline-css */
</style>
}}}
And there are all the block styles have these comments.
{{{
/*# sourceURL=wp-img-auto-sizes-contain-inline-css */
}}}
Since this is for developers purposes, can this be disabled with a help of
condition SCRIPT_DEBUG https://developer.wordpress.org/advanced-
administration/debug/debug-wordpress/#script_debug please to improve
performance?
These comments add additional kbs to a page.
Kind regards
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64369>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list