font-display

The @font-face setting that controls what text shows while a web font loads: invisible, a fallback font, or the fallback permanently if the font is late.

In more detail

swap shows fallback text at once and swaps in the web font later, which can shift layout. optional uses the web font only if it arrives almost immediately, avoiding the shift.

Related terms

Taught in

References