splide icon indicating copy to clipboard operation
splide copied to clipboard

Native loading="lazy" not working

Open anthonycook opened this issue 2 years ago • 0 comments

Checks

  • [X] Not a duplicate.
  • [X] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version

v4.1.3

Description

Using HTML's native loading="lazy" does not work, all images are still being loaded in even when they are off-canvas.

Reproduction Link

No response

Steps to Reproduce

  1. Add loading="lazy" to your images
  2. Inspect console on page load

Expected Behaviour

I expect only the images in view to be loaded in as native lazy loading is available in all modern browsers.

anthonycook avatar Aug 03 '23 13:08 anthonycook