| title | source |
|---|---|
Creating Perfect Font Fallbacks in CSS |
When using web fonts, it's often recommended that you set the font-display property to swap in your @font-face rulesets to prevent the so-called flash of invisible text (FOIT): the momentary flicker that occurs when text is set in a typeface that has not yet been downloaded by the browser. With font-display: swap, the browser will first render your text using the fallback typeface you specified in the font-family property:
body {