Hi,
On the slider settings you can disable cropping which will defer to WordPress, which should be adding the loading=”lazy” attribute to the images. That should work in most browsers (see which ones). Otherwise MetaSlider should work with most of the lazy loading plugins out there.
@kbat82 thanks for the swift response.
My theme comes with a default lazy load tool that works magic. I have disabled the “cropping” feature but still, lazy loading isn’t taking effect.
It works when I use cache plugins but the problem is, the images take slightly longer to load.
Any workaround like a functions hook?
When you disable the cropping, do you see the loading=”lazy” attribute on the images?
We have a hook metaslider_flex_slider_image_attributes where you can add extra attributes to images.
Hello,
Unfortunately, there’s no lazy loading attribute on the images.
Can you advise me on how to use the hook?
Hello @kbat82
I can confirm that my theme has picked up the slider images and applied lazyload after a purge action.
Thanks so much