manifest / performance / script-fetchpriority-low
Script Fetch Priority Low archived
[OBSOLETE WITH WP 6.9] Improves performance for the LCP metric by setting fetchpriority=low on script modules for the Interactivity API and on the comment-reply script. This implements https://core.trac.wordpress.org/ticket/61734
by Weston Ruter · github.com/westonruter/script-fetchpriority-low · website
★ 5stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/westonruter/script-fetchpriority-low/archive/refs/heads/main.zipDeclares an update source (https://github.com/westonruter/script-fetchpriority-low), so updates arrive through the plugin's own updater.
From the readme
[!NOTE]
This plugin is obsolete because the functionality in this plugin landed in WordPress 6.9. See section in frontend performance field guide.
Script Fetch Priority Low #
Description ##
This plugin improves performance for the LCP metric by setting fetchpriority=low on script modules (and modulepreload links) for the Interactivity API as well as on the comment-reply script.
This is a prototype to implement #61734 in WordPress core.
Here's an example of the changes you can expect to the page markup:
See full writeup: Improve LCP by Deprioritizing Script Modules from the Interactivity API.
Related plugin: Script Modules in Footer
Installation ##
1. Download the plugin ZIP from GitHub or if you have a local clone of the repo, run npm run plugin-zip.
2. Visit Plugins Add New Plugin in the WordPress Admin.
3. Click Upload Plugin.
4. Select the script-fetchpriority-low.zip file on your system from step 1 and click Install Now.
5. Click the Activate Plugin button.
You may also install and update via Git Updater.
Changelog ##
0.1.0 ###
Initia