• Resolved haman251

    (@haman251)


    Hi!

    I’ve been struggling quite a bit to exclude certain images from lazyload.
    I’m looking for a wrapper class that makes all the images inside be ignored.
    Here is an example of my trying to achieve this:

    It does work if I put the class or attribute directly onto the image, but this is not the solution I desire.

    • This topic was modified 4 months ago by haman251.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support adamewww

    (@adamewww)

    Hi @haman251

    I think I am seeing that you want it to be on a higher up element in the DOM but unfortunately, the class has to be on the image itself in order to skip lazy loading. Could you perhaps put a common naming scheme on the image names and put that in the lazy load exclusion box? Or in other words, is there a way to reference the specific images, as the exclusion box could then be used?

    Thread Starter haman251

    (@haman251)

    Hi @adamewww,

    Thank you for your response!
    I can’t place anything on the image itself. The image I provided was just an example.

    The first actual case I need this disabling feature for is Google maps API, which loads async on my website.
    Lazysizes causes some unclear js errors (unclear to me), so I just wanted to disable the lazyload feature for that specific third party component by wrapping a class around it.

    Plugin Support adamewww

    (@adamewww)

    With that, my guess is it’s loading in an iframe, yes? Can you try adding “iframe” without the quotes in the lazy load exclusion box.

    Thread Starter haman251

    (@haman251)

    That would have been a great solution, but it’s not an iframe.
    Alot of divs with classes and attributes.

    Plugin Support adamewww

    (@adamewww)

    Sorry that didn’t work. Unfortunately there isn’t really a solution to get to those parent elements. It’s on our schedule of things to try to tackle, but we’ve been looking at it for a while and not had any good solutions.

    If you want, I’d be happy to have a look at the site and see if I can figure out the issue.

    Plugin Support adamewww

    (@adamewww)

    As I haven’t heard anything about this, I’m going to resolve this thread. Please feel free to open a new one if you have further questions!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.