Ken Wheelers slick slider works great with normal pictures like jpeg. To improve loading performance i try to work with the picture element to have webp support with fallback. The data-lazy attribute works only with the img tag. Is there a solution to lazy load also the webp images?
<div id="slick-slider">
<div class="item">
<picture >
<source srcset="{{ bild }}.webp" type="image/webp">
<img class="img-fluid" alt="bild 1" data-lazy="{{ bild }}.jpg">
</picture>
</div>
<div class="item">
<picture >
<source srcset="{{ bild }}.webp" type="image/webp">
<img class="img-fluid" alt="bild 2" data-lazy="{{ bild }}.jpg">
</picture>
</div>
</div>