I have the following HTML:
<picture>
<source srcset="/images/product/foo.webp" type="image/webp">
<img src="/images/product/foo.jpg">
</picture>
When I use the Chrome developer tools to inspect the img
, I can see it's not using the WebP image (the "Current source:" when you hover over it is the .jpg
file, and lighthouse complains about the old image format).
However, the WebP file works just fine, and I can even see it when I hover over the <source>
tag. Can anyone explain why Chrome seems to be ignoring the WebP source and using the .jpg
one instead?