Open ntucakovic opened 5 years ago
I had very similar issue. Looped swiper with 5 images in a view. Images got their src lazy and once I scoll back there are empty places instead allready loaded images.
+1 also having this same issue.
+1 having same issue
interesting could this also be same reason issue #394 fails
1+
btw the swiper library now supports react out of the box. this repo is just a wrapper around it
1+
It still happens even when not using Lazy load, only loop and centeredSlides. The las ones (previous) are not loading images but the text does load.
When lazy loading is enabled with centered slides, slides appearing left of the active slide will not be loaded. Also when moving to previous slides, again images will not be loaded.
Demo: https://codesandbox.io/s/reactidswiper-center-slides-lazy-loading-wqpue Fix: https://codesandbox.io/s/reactidswiper-center-slides-lazy-loading-fixed-s7kh9
As you can see, it's not ideal. I don't have proper support in case
Swiper
is initialized withslidesPerView
auto
. So just work on top of that if you need to support that situation. I don't have that scenario in my swiper instances.I'm not sure whether I should lift this issue to
swiper
repo.