• Resolved deewinc

    (@deewinc)


    Hello,

    Thanks for creating such a wonderful plugin. I’m just wondering, is there a way to force lazy loading?

    I do have cache plugins that can do that but it kind of slows down the site a bit.

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter deewinc

    (@deewinc)

    @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.

    Thread Starter deewinc

    (@deewinc)

    Hello,

    Unfortunately, there’s no lazy loading attribute on the images.

    Can you advise me on how to use the hook?

    Thread Starter deewinc

    (@deewinc)

    Hello @kbat82

    I can confirm that my theme has picked up the slider images and applied lazyload after a purge action.

    Thanks so much

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to force Lazy loading?’ is closed to new replies.