font-display: Atur FOUT vs FOIT Playground

Mr. Harun’s three letterings on the news page: set each @font-face’s font-display, move the time, and see the heading invisible, in the fallback or the web…

Why it matters

Web fonts come over the network, and while waiting the browser must choose: hide the text (a blank page), show a fallback and swap later (text jumps, CLS goes up), or let the font go. font-display chooses per font, and icon, heading and body fonts need different choices.

The key idea

Each value only sets two clocks: when to stop hiding, and when to stop waiting

Common mistakes

Try it in this playground