Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Try this code to skip the first image in the page:

    add_filter( 'eio_lazy_fold', function( $count ) {
      return 1;
    });

    Depending on your layout, you might need to change that to 2 or 3 (which will skip the first 2 or 3 images on the page).

    Thread Starter Sayan Dutta

    (@sayandutta)

    Included it on function.php still, it’s showing the same.

    https://prnt.sc/yt2cha

    Plugin Author nosilver4u

    (@nosilver4u)

    Did you try it with “return 2”? Looks like your logo is image #1 (which doesn’t need to be lazy loaded either), and then the featured image should be #2.

    Thread Starter Sayan Dutta

    (@sayandutta)

    Yes, it’s gone now. But now something different came. I can’t understand how to fix this.

    https://prnt.sc/ztd3yo

    Plugin Author nosilver4u

    (@nosilver4u)

    I’m not sure you actually need to fix anything there. It’s just telling you that the image is the largest element. Or is there something else I’m missing here?

    Thread Starter Sayan Dutta

    (@sayandutta)

    I can’t get that too. I am only ending up with the LCP issue. Other all are Green.

    The theme author is saying this.
    https://prnt.sc/100ek7f

    Plugin Author nosilver4u

    (@nosilver4u)

    See what happens if you put ‘div’ in the lazyload exclusions. Not that your images actually have any bearing on this, but I’m curious if that speeds up the JS execution a bit.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How Can I disable Lazy load for the First Featured Image?’ is closed to new replies.