Image fallback with AVIF and WEBP image formats

Hi

Currently I have a large Event Calendar (https://lonelyporsche.com) and want to improve the loading times.

Google is recommending when I use PageSpeed Insites that i make the images AVIF or WebP.

I know there is a legacy issue with these new formats and in HTML there is a fallback like the following

<picture>
  <source srcset="image.avif" type="image/avif">
  <source srcset="image.webp" type="image/webp">
  <img src="image.jpg" alt="Fallback image">
</picture>

Has the Elfsight team considered a fallback whilst allowing the widget to load faster?

2 Likes

Hi there, @Chris_Rhodes :waving_hand:

Thank you so much for the feedback!

At the moment, it’s impossible to implement a fallback for these formats. However, this idea sounds interesting and we’ll try to think it over in the future, especially, if this request gets more votes :slightly_smiling_face: