P1Issue #60
Page speed : Serve image in next gen format
β What does it mean?
β What does it mean?
Traditional image formats like JPEG and PNG are heavier compared to modern, next-generation formats such as WebP and AVIF.
Next-gen formats provide better compression and higher visual quality at smaller file sizes, improving page load speed and overall user experience.
π¨ Why is it important for SEO?
π¨ Why is this a problem for SEO?
Slow Page Speed β Large images in outdated formats increase load times.
Core Web Vitals Impact β Slow image loading hurts LCP (Largest Contentful Paint).
Mobile Performance Issues β Heavy images drain data and slow rendering on mobile devices.
Ranking Impact β Since page speed is a ranking factor, slow image delivery can reduce search visibility.
β How to Fix It
β
Best Practices to Fix
Convert images to WebP or AVIF.
Use responsive images with srcset to serve different sizes for different devices.
Provide a fallback in case a browser doesnβt support next-gen formats.
Use a CDN (like Cloudflare, Akamai, or CloudFront) that automatically converts images to next-gen formats.
β Bad Example
π Example
β Bad (Old Format β JPG):
<img src="/images/banner.jpg" alt="Summer Sale Banner">
π Large file size (~450 KB) β Slower load time.
β Good Example
β
Good (Next-Gen Format β WebP):
<picture>
<source srcset="/images/banner.webp" type="image/webp">
<img src="/images/banner.jpg" alt="Summer Sale Banner" width="1200" height="400">
</picture>
π Browser loads WebP if supported, otherwise falls back to JPG.
β
Even Better (AVIF Example):
<picture>
<source srcset="/images/banner.avif" type="image/avif">
<source srcset="/images/banner.webp" type="image/webp">
<img src="/images/banner.jpg" alt="Summer Sale Banner" width="1200" height="400">
</picture>
π AVIF β Smaller file size than WebP, with WebP and JPG fallbacks.
β‘ Result
β‘ SEO & UX Impact of Fixing
Reduced page load time β Better Core Web Vitals (especially LCP).
Improved mobile experience β Less bandwidth usage.
Higher rankings β Google favors fast-loading, mobile-optimized sites.
Better conversions β Faster sites keep users engaged.