AMP · AMP page

AMP page missing or invalid boilerplate

This AMP page leaves out the required AMP boilerplate CSS, the style amp-boilerplate block and its noscript fallback, so it 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 has no style amp-boilerplate element and no noscript fallback. Everything else on the page is valid AMP.

The page still displays, but without the boilerplate it can flash unstyled content while the runtime loads.

Why it matters

The AMP boilerplate is a fixed block of CSS that hides the page until the AMP runtime has laid it out, with a noscript version for browsers without JavaScript. It must be copied exactly. If it is missing or edited, the page fails validation and is not served as AMP.

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.

How to fix it

Paste the current boilerplate from the AMP documentation into the head, unchanged. Templates that minify CSS can break it, so exclude it from minification. Google stopped requiring AMP for Top Stories in 2021, so many sites no longer need AMP at all.

Back to all tests