Optimizing Web Performance: Why We Switched to AVIF for Hero Assets
Every byte matters when it comes to first-contentful-paint (FCP). In our ongoing effort to polish the performance of the rifasvelez-web project, we took a hard look at our hero image assets and realized they were becoming a bottleneck.
Our landing pages were serving high-resolution PNG files. While visually crisp, these files were significantly inflating our total page weight. For users on mobile devices or slower connections, this translated into unnecessary latency.