AMP page is invalid - Web Stories & WP Rocket

Problem and solutions

  • WP Rocket Version enable Font Optimization by default that uses some JS which is not allowed. To fix, just install and activate this helper plugin provided by Team WP Rocket.

  • Also, uncheck ‘Minify JS’, ‘Load JavaScript deferred’ and ‘Delay JavaScript execution’ in the File Optimization tab. As it also uses some disallowed JS that somehow loads at Web stories.

After following these steps, your Web Story pages should be elegible for appearing in SERPs.