I built a landing page with the new WebP image format that significantly reduces image size. Simply like so:
#intro {
background-image: url("/assets/images/intro-lg.webp");
}
The problem starts with the browsers that doesn't support this kind of format (e.g IE).
Of course, I could do add the same image as .png
after the .webp
like so:
#intro {
background-image: url("/assets/images/intro-lg.webp"), url("/assets/images/intro-lg.png");
}
But then it's losing the point, since modern browsers will load both of these images.