This is an old revision of the document!
Lazy Load Breaks AMP Validation
When Lazy Load is enabled in the LiteSpeed Cache plugin for WordPress, it can break AMP validation.
Temporary Solution
Add the following code to your theme's functions.php
:
function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() && ! defined( 'LITESPEED_NO_LAZY' ) && define( 'LITESPEED_NO_LAZY', true ) ;
Purge the cache. This will disable Lazy Load on all AMP pages.
Permanent Solution
A permanent solution will be integrated into LiteSpeed Cache for WordPress, starting with version 3.0. Please update to 3.0 once it becomes available.