amp-toolbox-php icon indicating copy to clipboard operation
amp-toolbox-php copied to clipboard

Investigate moving some extension scripts to the end of <body>

Open schlessera opened this issue 2 years ago • 6 comments

Some extension scripts are only needed to power the interactivity for the user and are not necessary during the initial rendering process.

Moving these scripts to the end of the <body> tag instead of having them in the <head> would thus likely improve LCP.

We should investigate which extensions can safely be moved, and whether it is always a net win for CWV.

See this comment by @westonruter where he already experimented with this approach with promising results: https://github.com/ampproject/amp-wp/issues/6182#issuecomment-867333175

schlessera avatar Aug 25 '21 06:08 schlessera