1. Compress and modernize images
Images are usually the heaviest bytes on a homepage and the most common LCP element. Every kilobyte you remove directly shortens load time on phones.
- Serve AVIF first, WebP as fallback, JPEG last — AVIF is typically 30–50% smaller than JPEG at the same quality.
- Generate responsive sizes (e.g. 640w, 1024w, 1440w) and use srcset so phones never download desktop-sized files.
- Target quality 45–60 for photos; visitors can't tell the difference, but the file size drops dramatically.
- Never upscale: the largest generated size should match the largest rendered size.
On this site: This site serves every hero and content image as AVIF/WebP srcset with a compressed JPEG fallback.
