A quick tip from the archives and a technique I use really frequently is leveraging the <picture> element as a progressive enhancement tool for modern image formats such as AVIF and WebP.
If all else fails, the backup JPG or PNG is loaded seamlessly.
https://piccalil.li/quick-tip/picture-as-a-progressive-enhancement/