Performance · Loading

Text invisible during web font load

Some text on this page uses a web font with no font-display setting, so the browser shows nothing until the font has downloaded.

How this page is built

This paragraph uses a copy of the site font loaded with no font-display setting, so browsers use their default and keep the text invisible until the file arrives. Every other page uses font-display: optional, which shows a fallback font straight away and only switches to the web font if it arrives in time, so the text never moves.

Why it matters

When a web font is slow to load, the browser has to decide what to show. With block, it hides the text for up to three seconds, so visitors see blank space where the words should be. With swap, it shows a fallback font straight away and swaps in the web font when it arrives.

Invisible text delays First Contentful Paint and Largest Contentful Paint, and on slow connections the page can look broken.

How to check it

Run Lighthouse or PageSpeed Insights on the page and look at the diagnostics. Crawl tools that run Lighthouse for each page, or that measure page resources, report the same finding across the site. Lighthouse’s font display insight lists fonts that hide text while they load. Check each @font-face rule for its font-display value.

How to fix it

Add font-display: swap or font-display: optional to every @font-face rule, and preload the most important font files so they arrive sooner. optional also stops the text moving when the web font arrives, which avoids layout shift.

Back to all tests