Support for webp image format

Sure, it would look like this:

<picture>
  <source srcset="${resourcesFolderName}/dice.webp" type="image/webp">
  <img srcset="${resourcesFolderName}/dice.png" alt="dice">
</picture>

Quick demo: webp.hype 2.zip (113.3 KB)

This example is from: Using WebP Images | CSS-Tricks - CSS-Tricks

The picture element gives you pretty cool responsive features you can also take advantage of.

How do you know you're being penalized? Are you looking at your Pagespeed insights score?

1 Like