[wp-trac] [WordPress Trac] #64429: Script Modules: Dependencies inherit fetchpriority from not-enqueued, registered modules
WordPress Trac
noreply at wordpress.org
Mon Dec 22 20:15:25 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: 6.9.1
Component: Script Loader | Version: 6.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: javascript
--------------------------------------+--------------------------
Description changed by westonruter:
Old description:
> In [https://github.com/WordPress/wordpress-develop/pull/10638 PR 10638],
> it was noticed that a script module's fetchpriority may increased to
> match its dependent's fetchpriority even if that module is not enqueued.
>
> It seems that the dependency's fetchpriority should only increase when an
> enqueued dependent has a higher fetchpriority, not when any registered
> dependent has a higher fetchpriority.
>
> [60931] added the logic for module dependencies to increase their fetch
> priority.
New description:
In [https://github.com/WordPress/wordpress-develop/pull/10638 PR 10638]
([https://github.com/WordPress/wordpress-
develop/pull/10638#discussion_r2623418658 comment]), it was noticed that a
script module's fetchpriority may increased to match its dependent's
fetchpriority even if that module is not enqueued.
It seems that the dependency's fetchpriority should only increase when an
enqueued dependent has a higher fetchpriority, not when any registered
dependent has a higher fetchpriority.
[60931] added the logic for module dependencies to increase their fetch
priority.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64429#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list