Thank you Paweł! It all depends on the browser support. So on page load, the browser will decide which image URLs to request to load. Those AVIF images are requested, when supported, technically dynamically via the URL params on the Contentful URL. There’s probably some caching on Contentful’s side, so they probably aren’t generated from scratch every single time they are requested.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Salma, great article (i just learned about
decoding="async"
). Do you dynamically create avif version when it is requested or pregenerate them?Thank you Paweł! It all depends on the browser support. So on page load, the browser will decide which image URLs to request to load. Those AVIF images are requested, when supported, technically dynamically via the URL params on the Contentful URL. There’s probably some caching on Contentful’s side, so they probably aren’t generated from scratch every single time they are requested.