<picture>
<source type="image/webp" srcset="images/me.webp">
<img id="avatar" src="images/me.webp" alt="Me">
</picture>
When I use the picture
element, the browser(chrome) doesn't load the image with the other resources. However, when I replace <picture>
with only <img>
element it works fine:
<img id="avatar" src="images/me.webp" alt="Me">
Why is that happening?