[wp-trac] [WordPress Trac] #61734: Add the ability to handle "fetchpriority" to ES Modules and Import Maps
WordPress Trac
noreply at wordpress.org
Mon May 26 21:11:25 UTC 2025
#61734: Add the ability to handle "fetchpriority" to ES Modules and Import Maps
-------------------------------------+-------------------------------------
Reporter: dennysdionigi | Owner: westonruter
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.8.2
Component: Script Loader | Version: 6.5
Severity: minor | Resolution:
Keywords: has-patch has-unit- | Focuses: javascript,
tests | performance
-------------------------------------+-------------------------------------
Comment (by westonruter):
I published an in-depth post ([https://weston.ruter.net/2025/05/26
/improve-lcp-by-deprioritizing-interactivity-api-script-modules/ Improve
LCP by Deprioritizing Script Modules from the Interactivity API]) with
benchmarking results, showing that adding `fetchpriority=low` to the
script modules (on both the `script[type=module]` and
`link[rel=modulepreload]` tags) can [https://weston.ruter.net/2025/05/26
/improve-lcp-by-deprioritizing-interactivity-api-script-modules
/#performance-of-low-priority-script-modules improve LCP by ~7%].
[https://github.com/WordPress/wordpress-develop/pull/8815 Pull request]
with core patch is ready for review. See also
[https://github.com/WordPress/gutenberg/pull/70173 corresponding Gutenberg
PR].
When combined with moving the script modules to the footer (#63486), the
LCP improvement can be >9%.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61734#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list