I´m using Lazysizes to lazyload a carousel in my AngularJs app.
If I do lazysizes on images, it works, but I don´t like the effect, because the images are loaded the moment the user click on the arrow buttons to change the images, but there are some milliseconds the image is white while loading. This is the code:
<div class="carousel slide">
<carousel interval="-10">
<slide ng-repeat="i in imagesList">
<img data-src="image-url.jpg" class="lazyload" />
</slide>
</carousel>
</div>
However, what I would like to do is to lazyload the carousel itself. But the moment the carousel is loaded, then all images in that carousel should be loaded to avoid that ugly effect.
<div class="carousel slide lazyload">
<carousel interval="-10">
<slide ng-repeat="i in imagesList">
<img ng-src="image-url.jpg" />
</slide>
</carousel>
</div>
I don´t know how to do this or if it´s possible. I think my carousel comes from bootstrap 2.3.2