Skip to main content
PerformanceJan 14, 2026 • 6 min read

Optimizing Images and Fonts in the Next.js App Router

The Core Web Vitals techniques you need to know when working with Next.js in 2026.

Optimizing Images and Fonts in the Next.js App Router

A 100/100 PageSpeed Insights Score Is Not a Dream

When a page loads, images and fonts are the two main causes of CLS (Cumulative Layout Shift).

Tip 1: Preload Fonts

Next.js ships with the next/font/google module: just declare the font at the very top of layout.tsx. The framework downloads the real font file and injects it into the HTML at build time. Even when the network drops, the font still renders correctly.

Tip 2: The Magical Image Component

Forget the traditional <img /> tag and use next/image instead. If you cannot determine a fixed size, use the fill trick together with the object-cover class. The framework quietly crops and resizes the image to a very light WebP format (only about 50KB).

Contact

Let's Build Something Great

Have an exciting project or a collaboration opportunity? I'm always happy to listen and connect.

GitHub