Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #63486


Ignore:
Timestamp:
05/26/2025 09:06:42 PM (11 months ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63486 – Description

    v1 v2  
    55Therefore, all script modules for the Interactivity API should be deprioritized to not compete with the loading of any resources needed in the critical rendering path, especially any image resource for the LCP element. One way to reduce the priority of the script modules is to add `fetchpriority=low` to the `script` tags (#61734), and the other way is to print the script module in the footer. Implementing both deprioritization techniques yields the highest improvement to LCP in my testing.
    66
    7 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 moving Interactivity API script modules from `wp_head` to `wp_footer` alone can [https://weston.ruter.net/2025/05/26/improve-lcp-by-deprioritizing-interactivity-api-script-modules/#:~:text=LCP%20is%20consistent.-,Printing%20Script%20Modules%20in%20the%20Footer,-As%20referred%20to improve LCP by ~7%].
     7I 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 moving Interactivity API script modules from `wp_head` to `wp_footer` alone can [https://weston.ruter.net/2025/05/26/improve-lcp-by-deprioritizing-interactivity-api-script-modules/#printing-script-modules-in-the-footer improve LCP by ~7%].