[wp-trac] [WordPress Trac] #64429: Script Modules: Dependencies inherit fetchpriority from not-enqueued, registered modules
WordPress Trac
noreply at wordpress.org
Mon Dec 22 02:08:04 UTC 2025
#64429: Script Modules: Dependencies inherit fetchpriority from not-enqueued,
registered modules
--------------------------------------+--------------------------
Reporter: jonsurrell | Owner: westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 7.0
Component: Script Loader | Version: 6.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: javascript
--------------------------------------+--------------------------
Comment (by westonruter):
When `WP_Script_Modules::print_script_module()` was calculating the
highest `fetchpriority` for its script module dependents, it was not
considering whether those dependents were actually enqueued. Now it does.
Note the issue was not present for classic scripts.
Test cases have been added for scripts and script modules.
Ready for review: https://github.com/WordPress/wordpress-
develop/pull/10651
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64429#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list