• Resolved akedv

    (@ak71)


    Hi,

    what’s the right context to exclude classes from lazy load? I tried all kinds of combinations, but none seems to work:

    .similarpost or similarpost or “.similarpost img” or “similarpost img” or “similarpost a img”

    eg on this page: https://www.china-smartphones.eu/angebote/smartphones-angebote/vivo-y95-guenstig-kaufen-preisvergleich/

    right after “Ähnliche Produkte:” the images are “missing” (just after activating the lazyload option), so I want to exclude these images from being lazyloaded, or is there any other way to get these pictures displayed again?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    The lazyload exclusions only work for attributes (and values) that are in the <img tag itself, so some possible workarounds:
    * check if you can add a specific class for images in similar post logic (plugin?)
    * alternatively add one specific string to all those images’ alt/ title tags and add that specific string to the list lazyloading exclusions
    * or exclude the images used in the lightbox based on their filename

    hope this helps,
    frank

    Thread Starter akedv

    (@ak71)

    ok, the easiest way was to use the filename: star.png,100×100.jpg fixes the problem, thanks!

    but why are these images missing in the first place?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Lazyload uses JS to do it’s work, I suppose that for the similar post-display some JS is used as well and that this conflicted?

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

The topic ‘Exclude class from lazy load’ is closed to new replies.