Images are still your biggest win
AVIF, responsive sizes, and a pipeline that makes the right thing the default thing, even for the content team.
AVIF, responsive sizes, and a pipeline that makes the right thing the default thing, even for the content team.
Every audit we run, the largest single optimization is still images. Not JS bundles. Not CSS. Not fonts. Images. And the fix is boring and repeatable.
AVIF beats WebP beats JPEG on file size at equal quality, but not every browser wants AVIF. A <picture> element with the right sources lets each browser pick its own path, and cuts weight in half without touching design.
A 2400px source served into a 400px slot is 6x more pixels than the browser will ever show. Generate a proper srcset from the layout (not from a static config) and let the browser choose.
<Image
src={hero}
widths={[400, 800, 1200]}
sizes="(min-width: 768px) 50vw, 100vw"
loading="eager"
fetchpriority="high"
/>
The best pipeline is the one the content team does not have to remember to use. Wire the transform into your CMS or your component library so <Image> is the only thing anyone reaches for.
The right thing has to be the default thing. Everything else decays.
Principal engineer at SUE, focused on performance and edge rendering. Writes about making fast the default.