• Resolved dave8441

    (@dave8441)


    I enabled lazy loading in Autoptimize, and it is working for all images except for my gallery images. How can I fix this issue?

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

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

    (@optimizingmatters)

    Hey Dave;
    What are the lazyload settings (exclude field & lazyload from nth image field)?

    frank

    Thread Starter dave8441

    (@dave8441)

    Hi Frank,
    The settings are:
    1) Optimize Images: unchecked
    2) Lazy-load images?: checked
    3) Lazy-load exclusions: now-hiring.jpg
    4) Lazy-load from nth image: 1

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no idea why, but I’ve been able to reproduce on my local test-site so I’ll look into this, more later (probably tomorrow) 🙂

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, found the reason; when applying lazyloading, AO adds a data-src attribute to the image to hold the URL of the to be lazyloaded image, but the WooCommerce gallery images already have a data-src attribute which AO should not override, hence AO has to skip those. Afraid I don’t see an easy workaround there :-/

    Thread Starter dave8441

    (@dave8441)

    Okay, thanks for checking.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Gallery images are not lazy-loaded’ is closed to new replies.