[wp-trac] [WordPress Trac] #61734: Add the ability to handle "fetchpriority" to ES Modules and Import Maps
WordPress Trac
noreply at wordpress.org
Thu Oct 23 16:09:39 UTC 2025
#61734: Add the ability to handle "fetchpriority" to ES Modules and Import Maps
-------------------------------------+-------------------------------------
Reporter: dennysdionigi | Owner: westonruter
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Script Loader | Version: 6.5
Severity: minor | Resolution: fixed
Keywords: has-patch has-unit- | Focuses: javascript,
tests needs-dev-note | performance
-------------------------------------+-------------------------------------
Comment (by pbiron):
I think there is a problem with the refactoring of
[https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-
script-modules.php?rev=60999#L571 WP_Script_Modules::get_dependencies()]
in [60999].
I updated a local/dev version of client site yesterday and something
broke. This particular site has a custom block-based theme, that uses the
navigation block (which enqueues `@wordpress/interactivity`).
In 6.8.3, `WP_Script_Modules::get_dependencies()` returns
{{{
array (
'@wordpress/interactivity' =>
array (
'src' => 'https://cppclaims.test/wp-includes/js/dist/script-
modules/interactivity/debug.js',
'version' => 'beb31ebdbe898d3dd230',
'enqueue' => false,
'dependencies' =>
array (
),
),
)
}}}
but in 6.9-beta1 it returns:
{{{
array (
0 => '@wordpress/interactivity',
)
}}}
I'm pretty sure the above is not enough information to fully debug the
problem, but I'm extremely busy w/ my day-job at the moment and don't have
time right now to look into this further before posting a report...but
wanted to get this report in so that those involved in the refactoring
could look into it quickly.
If you have any questions, I'll do my best to respond.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61734#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list