Support » Plugin: Lazy Load by WP Rocket » Disable Lazy Load on APM Pages

Viewing 3 replies - 1 through 3 (of 3 total)
  • same here – AMP does not load any javascript but still rocket-lazy-load is replacing images with placeholders and adds noscript stanzas. please disable content manipulation at all AMP pages (<html amp> type or /amp/ in location).


    You can try something like:

    add_filter('do_rocket_lazyload', 'disable_lazyload_on_amp');
    function disable_lazyload_on_amp( $status )
        if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
             return false;
        return $status;


    Tnx Mustafa, it works

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Lazy Load on APM Pages’ is closed to new replies.