Support » Plugin: Lazy Load Optimizer » Usage of lazy load on image in php

  • Hello,

    I’m trying to use the lazy load plugin on my website newest wordpress version, 1st question is i’m adding image class “lazyloaded” to an image displayed by echo in a php file, however if you open inspect you see that the class is there but the image is not lazy loaded, what should i do to lazy load img tags in php files?

    Another question is sometimes some images are lazyloaded, other times same images are not lazyloaded (checking audit in chrome) how to prevent such issue?

    Thanks a lot.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Processby

    (@processby)

    Hello.

    1. Class should be “lazyload” and instead src should be data-src.
    <img data-src="image.jpg" class="lazyload" />
    2. Need to see the site page.

    Hello,

    Thanks for your reply, using the data-src and correct class did the trick, however still i got woocommerce thumbnails on product sliders which are still giving a defer offscreen error.

    Testing site: https://www.medical-professionals.biz

    Thanks in advance.

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Usage of lazy load on image in php’ is closed to new replies.