Should I use avif Image rather than webp to have faster website?

60 Views Asked by At

Should I use avif Image rather than webp to have faster website ? Thanks.

2

There are 2 best solutions below

0
On

The file size savings compared to more "legacy" formats is going to be relatively similar for most images, but in general, yes, I'd lean into using it. All major browsers now support it, and there are services out there (like picperf.io) that do the transformation for you and only serve that modern format if a user's browser can support it.

1
On

AVIF has better compression, but slightly less compatibility with some browsers. You can check it on "Can I use?"

So I guess it depends on what you want, I use webp just in case. But both of them has no compatibility with internet explorer, for example.

Hope it helps =)