How to load custom fonts without hurting your page speed - font-display, subsetting, and variable fonts explained.
Custom fonts add personality to your brand but can significantly impact page load times. A single font family with multiple weights can add 200-500KB to your page, causing layout shifts and slow rendering.
Use font-display: swap to show fallback text immediately while fonts load. This prevents invisible text (FOIT) and gives users content to read while the custom font downloads.
Subset your fonts to include only the characters you need. Latin-only subsets are typically 70% smaller than full Unicode fonts. Tools like glyphhanger automate this process.
Variable fonts combine multiple weights and styles into a single file. A variable font is often smaller than two static fonts, while giving you infinite weight variations. Most modern browsers support them.


