Next.js & App Router (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
How does Next.js Font Optimization (`next/font`) work?
junior LevelPerformance
In Simple Words: Traditional web fonts hosted on Google Fonts make external network requests, delaying text rendering and causing Cumulative Layout Shifts (CLS) when fonts swap.
next/font(Google & Local):- Downloads font files at build time and hosts them locally alongside your static assets.
- Injects CSS
size-adjustto match fallback system fonts perfectly, eliminating layout shifts completely. - Zero external browser requests to Google servers (100% GDPR compliant).