Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #63486


Ignore:
Timestamp:
05/26/2025 09:01:24 PM (13 months ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63486 – Description

    initial v1  
    44
    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.
     6
     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/#:~:text=LCP%20is%20consistent.-,Printing%20Script%20Modules%20in%20the%20Footer,-As%20referred%20to improve LCP by ~7%].