font-display, explained
Without it, some browsers hide text briefly while waiting for the font. That is known as a flash of invisible text, and it can make a page look empty on a slow connection.
The main values are auto, block, swap, fallback and optional. Swap always shows the text quickly. Optional lets the browser skip the web font if it is too slow.
Swap has a side effect: when the font changes, text can reflow and cause layout shift. Choosing a fallback with similar sizes, or using size-adjust, reduces that.
Self-hosting and preloading your main font files can help too, since they arrive earlier. Preload only the one or two that matter, or you can slow the page instead.



