ampproject / ampproject/amp-toolbox-php

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

Open
#327 6 comments 2 reactions 1 assignee Claimed by @ediamin View on GitHub
Optimizer P2
Dominant language
PHP
Stars
74
Forks
25
Avg merge
1d 15h
Merged PRs (30d)
3

Description

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 `` tag instead of having them in the `` 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.