Skip to content
Nazmul Nikhil
Menu

Font Display in PageSpeed Insights: Keep Text Visible While Fonts Load

PageSpeed flags web fonts that hide text while loading. One CSS line fixes most cases. Here's how, including Google Fonts and icon fonts.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Font Display in PageSpeed Insights: Keep Text Visible While Fonts Load
Photo: Angèle Kamp on Unsplash

In short

The Font display insight checks the CSS font-display setting so text stays visible while custom fonts download. Without it, some browsers hide text for up to a few seconds. Add font-display: swap (or optional) to each @font-face rule. For Google Fonts, make sure the URL ends with &display=swap.

This used to be called "Ensure text remains visible during webfont load."

Replaced: font-display.

The fix

@font-face {
font-family: "Brand Sans";
src: url("/fonts/brand-sans.woff2") format("woff2");
font-display: swap;
}
Value Behavior Use when
swap Shows fallback text at once, swaps when the font arrives Most body and heading fonts
optional Uses the font only if it loads almost immediately You want zero layout shift

Icon fonts

Icon fonts (Font Awesome, theme icon sets) are a common cause because their CSS often lacks font-display. Override it in your own CSS, or switch to SVG icons.

WordPress: many optimization plugins add font-display: swap automatically. Shopify: check theme font settings and custom @font-face rules. Webflow and Wix: check uploaded custom fonts. Custom builds: self-host WOFF2 files with swap.

Common mistakes

  • Using swap with a very different fallback font, which causes a visible jump (CLS). Pick a similar fallback.

This guide isn't affiliated with or endorsed by Google.

Sources and references

TAGSPageSpeed InsightsFont display pagespeedEnsure text remains visible during webfont loadFont-display swap
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Core Web Vitals

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Page Speed & Core Web Vitals posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com