htmlfonts
← Back to Guides Directory
Web Vitals

How to Load Fonts Asynchronously

01. The Concept

Custom fonts can block page rendering. Using font-display: swap tells the browser to show a fallback font immediately until the custom font finishes downloading.

02. Production-Ready Code

@font-face { font-display: swap; }

💡 Pro Typography Tip

Preload your critical above-the-fold fonts in the HTML head to avoid flashing.