AMP · AMP page

AMP page missing or invalid AMP script

This AMP page loads the AMP runtime script without the async attribute, so the required script tag is invalid and the page fails AMP validation.

How this page is built

This page is an AMP page. Its canonical points at a non-AMP version, which names this page in a rel=amphtml link. Its head loads the AMP runtime with <script src="https://cdn.ampproject.org/v0.js">, leaving out the async attribute that AMP requires. Everything else on the page is valid AMP.

Without async, the script blocks the page from rendering while it downloads.

Why it matters

The AMP runtime script manages loading and layout on every AMP page. It must be loaded from the AMP cache’s address with the async attribute. A missing or altered script tag fails validation, and the page is not served as AMP. If the script is missing altogether, visitors also see a blank page for several seconds, because the boilerplate hides the body until the runtime loads.

How to check it

Run the page through the AMP validator (the AMP Test in Search Console, the validator at validator.ampproject.org or the amphtml-validator package), or add #development=1 to the URL and open the browser console. Crawl tools that check AMP report validation errors per page. You can also search the source for cdn.ampproject.org/v0.js.

How to fix it

Add <script async src="https://cdn.ampproject.org/v0.js"></script> to the head, right after the charset. Google stopped requiring AMP for Top Stories in 2021, so many sites no longer need AMP at all.

Back to all tests