How to avoid common mistakes while publishing Accelerated Mobile Pages
As Accelerated Mobile Pages (AMP) are building up momentum we’ve noticed the same mistakes happen again and again when publishing AMPs. Here is a list of steps you should take to avoid breaking your AMPs and ensure a great AMP experience to your readers. 1. Publish only valid AMP files One of the great things about AMP is that the runtime includes a built-in validator. The validator checks if your AMP file contains valid AMP HTML. If your page contains invalid AMP, it will not load correctly and third-party platforms might choose not to show your AMP page. This makes it a good idea to validate a representative subset of your AMP pages to make sure that all different variants are valid. Run the validator by adding “#development=1" to an AMP URL, for example: https://ampexample.com #development=1 You can view the validation result in the Javascript console of your browser: 2. Include correct metadata Adding metadata to your AMP files ...