• Resolved Dalibor

    (@dalibord)


    I’m having an issue with excluding specific images from the lazy loading. The logo is one of them.

    I’ve tried site-logo class exclusions, I’ve tried adding another class to the logo (ew-skip-lazy), and I’ve tried with wp-config.php declaration define( ‘EIO_LAZY_FOLD’, 3 );

    Is there an option to exclude from ll via the URL of the image?

    Nothing seems to work.
    I have WProcket, but I’m using only EWWW for lazy loading.

    https://prnt.sc/gyqUwlP_w1X3
    https://prnt.sc/wDiDQ2PiSbcl

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support adamewww

    (@adamewww)

    Hi dalibord,

    For that exclusion box and for something specific like this, it’s usually best to add the filename, so in your instance, logo-white-icon.svg. Or, you could add the ‘skip-lazy’ class to that image (note, not ew-skip-lazy). You would do that where you define that image in your page builder. Once you do that, you will want to clear your cache and check again.

    Thread Starter Dalibor

    (@dalibord)

    Hi adame.
    I’ve tried skip-lazy, and it didn’t work.
    I’ve added a custom ew-skip-lazy class for the images I’d like to exclude, and I’ve added that class (ew-skip-lazy) to the exclusion as well.
    Of course, I’ve cleared the cache.

    Simply does not work, I’m also wondering why define( ‘EIO_LAZY_FOLD’, 3 ); in wp-config.php also does not work.
    Strange.

    Ps. the URL method seems to work, thanks!

    • This reply was modified 3 years, 8 months ago by Dalibor.
    Plugin Support adamewww

    (@adamewww)

    I’m glad that worked! If you want to explore the other items and why they didn’t work, the rest of these questions have to do with that.

    Where were you adding skip-lazy? It needs to be added as a class to the image itself. If you did and it was still being lazy loaded, was it perhaps the built-in lazy loader from WordPress? Can you add it to an image on your site so I can see it?

    I searched for ew-skip-lazy on your site and found some background images were the only ones with it on a parent, but it will only work if it’s on the element itself.

    The “3” in that override has to do with the number of elements to exclude, in order of load. It doesn’t look like your logo was loading in the top 3 which may be why it wasn’t catching it (though as you mentioned, it is being skipped now). I do see images being excluded from your site (including the top 3).

    Thread Starter Dalibor

    (@dalibord)

    “I searched for ew-skip-lazy on your site and found some background images were the only ones with it on a parent, but it will only work if it’s on the element itself.”

    I’ve replaced it with a more intuitive “no-lazy” class. That’s being taken care of with the URL exclusion.

    There is still an issue with the Elementor background images not being ll-ed.
    I’ve added a custom class on the Elementor, but it goes to the parent div (which is ll-ed).
    https://prnt.sc/hYrc3_ESNTub
    The image itself is still not ll-ed.
    https://prnt.sc/Xp5Ws1KwIgcH

    Is there any workaround for that?

    Plugin Support adamewww

    (@adamewww)

    What happens if you add the class of the element itself to the exclusion box?
    elementor-element-populated

    Thread Starter Dalibor

    (@dalibord)

    I can’t do that, as that class is not limited to that page alone.
    Can’t try it, as I don’t have the access to the website any more. My work on it is done.

    Plugin Support adamewww

    (@adamewww)

    OK, next time, I guess!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Lazy load exclusions issues’ is closed to new replies.