Text invisible while the font loads
Why it matters
font-display: block (or auto, or no font-display in @font-face) hides text for up to 3s while the web font downloads (Lighthouse: "Ensure text remains visible during webfont load").
Fix
font-display: swap (or optional for body text); in next/font, keep the default display: "swap".
Credit
From Google Chrome
Lighthouse flags web fonts that keep text invisible during loading and recommends font-display: swap.
References
- Ensure text remains visible during webfont loadChrome for Developers
- Optimize WebFont loading and renderingweb.dev
- font-display CSS at-rule descriptorMDN Web Docs