• Resolved Gustavo Guerra

    (@gustavo-soares-guerra)


    Hi,

    On my website, the WebP images generated by the ShortPixel Image Optimizer throught <picture> tag do not receive the attribute loading="lazy" for WordPress native lazy load and other lazy load plugins also do not solve the problem.

    Is there an error in my configuration or does the plugin not support lazy load on WebP images?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi Gustavo!

    By default, WordPress will add loading="lazy" to all img tags that have width and height attributes present. If these are not present, then the image will not be lazy loaded.

    Try to add those and then check if it works ??

    Best,

    Thread Starter Gustavo Guerra

    (@gustavo-soares-guerra)

    Hi Gerard,

    My images have a specified weight and height tags, but the lazy load does not work:

    https://imgur.com/a/XXX7GFg

    I tested it with the standard WordPress theme and even tried using other lazy load plugins, but the loading="lazy" tag never appears with WebP images.

    Looks like this may have been fixed in the latest release today (v4.22.0):-

    Fix: Keep the loading=lazy attribute on IMG tags when delivering next-generation images using the picture method

    Plugin Support Gerard Blanco

    (@sixaxis)

    Yes, @gustavo-soares-guerra, we fixed it ??

    Thread Starter Gustavo Guerra

    (@gustavo-soares-guerra)

    Thanks! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Lazy Load does not work with WebP images’ is closed to new replies.