Exclude Jetpack Lazy Loading by post id, slug or title

Exclude Jetpack lazy loading by post ID, slug, or title if using Jetpack on your child site.

Snippet Type

Execute on Child Sites


add_filter( 'lazyload_is_enabled', 'jp_lazyload_exclude', 15 );
function jp_lazyload_exclude() {
    if ( is_page( array( 12, 'slug', 'Title' ) ) ) {
        return false;
    } else {
        return true;
1 Like

Change post id, slug or title to whatever the correct value needs to be.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.