• Resolved jamieburchell

    (@jamieburchell)


    WordPress automatically adds loading=”lazy” to images with an explicit width and height. With that in mind, is it necessary to enable W3TC’s lazy load functionality for img tags?

    There are some situations I’ve encountered where it fails such as images added to Elementor’s popups. These images already have loading=”lazy” attributes.

    If enabled, shouldn’t there be a blacklist entry for tags containing loading=”lazy” to avoid “double lazy” issues?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jamieburchell

    Thank you for reaching out and I am happy to help!
    W3 Total Cache uses javascript (which is the old but proven way) andWordPress’s implementation uses “native lazyload” where browsers check the?loading?attribute set to?lazy.

    There are no issues when it comes to using W3TC lazyload with wp native lazyload and in fact, if you check the testing results, often you will find that even with the native lazyload, testing tools are still suggesting to Lazyload images.
    Therefore, you should still use the Lazyload in the W3 Total Cache, and there is no need to exclude any tags if the image is loading fine.
    If however, the image is not loading, then it needs to be troubleshooted and possibly exclude the image or the class of the images not loading from the Lazyload.

    I hope this helps!

    Thanks!

    Thread Starter jamieburchell

    (@jamieburchell)

    Thanks @vmarko

    Unfortunately Elementor doesn’t provide a way to add custom attributes directly to the image tags where it doesn’t work, which means having to remember to whitelist specific images where they are used for popups. This isn’t a client friendly solution, so I’m looking at disabling it all together.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jamieburchell

    Thank you for your feedback.
    Yes, in this case you need to add the specific image. You should also check if the elementor has it’s own lazyloading option enabled for images in the settings.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is enabling lazy loading of images necessary now?’ is closed to new replies.