AMP page is invalid - Web Stories & WP Rocket

Problem and solutions

  • WP Rocket Version 3.10.5.1 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.