kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.33k stars 5.88k forks source link

The last image always preloads when using lazyLoad === 'anticipated'. #4289

Open LeDuc2004 opened 4 months ago

LeDuc2004 commented 4 months ago

In the demo https://jsfiddle.net/pmxvunf8/, in slide-2, when I use $('.slider-2').slick({ infinite: false, lazyLoad: 'anticipated' }); the last image is always loaded even though the src has been replaced with data-lazy