splide
splide copied to clipboard
Native loading="lazy" not working
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
- Add
loading="lazy"to your images - 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.