Compare Two Ways to Render a Delayed Font
Admin ·
A font can arrive after the text is ready to paint. Choose when the fallback should appear and whether the custom face can replace it later.
Compare the same 1,500 ms body font
Choose Body text preset and Compare font strategies. This sets Reading Sans to 30 KB and an estimated load of 1,500 ms. In the model, fallback becomes visible at 100 ms and switches to the custom face at 1,500 ms.
In the optional row the fallback also becomes visible at 100 ms, but the table reports Fallback retained. Swap models immediate fallback text and a switch at 1,500 ms. Auto leaves the decision to the browser.
| Modeled strategy | Text becomes visible | Custom face |
|---|---|---|
| block | 1,500 ms | 1,500 ms |
| swap | 0 ms | 1,500 ms |
| fallback | 100 ms | 1,500 ms |
| optional | 100 ms | Fallback retained |
Open Font Loading Strategy Checker and choose Body text presetW3C CSS Fonts, font-display descriptor and timing
Change the arrival time to 3,500 ms
Keep the same font and set Estimated load time to 3,500. Compare strategies again. With fallback, the model applies a 100 ms block and then a 3,000 ms swap window. At 3,500 ms that window has passed, so the fallback remains.
Swap can still change to the custom face at 3,500 ms. Inspect the Visible swap risk column alongside the timeline. An actual change in layout depends on the characters, the two font metrics and the surrounding elements.
Apply the chosen CSS to the real font
Choose Font-display to export and download font-loading.css. Replace ./font.woff2 with the correct relative path and use the exported family in your stylesheet. Enter Unicode ranges only if they describe that particular font file.
Test the applied rule with a cold cache and a delayed font response. Compare the visible face before and after the response. The timeline is a model with fixed assumptions, and browsers may use different durations or loading behavior.
W3C CSS Fonts, font-display descriptor and timingW3C CSS Fonts, Unicode range descriptor
Common questions
Will a font with optional always be downloaded in the background?
Browsers can adjust priority, stop the request or skip loading when the face misses the initial display opportunity.
Does the modeled swap risk give a CLS score?
It marks whether the scenario can swap after text is visible. Measure layout shift on the real page with its actual fonts and layout.
Sources and example
Put it into practice.
- Font Loading Strategy Checker
- Font Fallback Stack Generator
- Font Weight Previewer
- Web Font Loading Analyzer