Hi,
I found a way.
You can remove lazyload images filters on specific pages or templates, etc.
/**
* Remove lazyload images filter.
* Use 'wp' hook because Lazyload instance is loaded in the same hook and we need to use WP conditional tags.
*/
function exclude_template_lazyload() {
$A3_Lazy_Load = A3_Lazy_Load::_instance();
if ( is_page( 'my-page' ) ) {
remove_filter( 'the_content', array( $A3_Lazy_Load, 'filter_content_images' ) );
remove_filter( 'widget_text', array( $this, 'filter_images' ), 200 );
remove_filter( 'post_thumbnail_html', array( $this, 'filter_images' ), 200 );
remove_filter( 'get_avatar', array( $this, 'filter_images' ), 200 );
}
}
add_action( 'wp', 'exclude_template_lazyload' );