Font Loading Causing Layout Shift - FOUT or FOIT
Fonts load slowly causing text to flash or shift layout (Cumulative Layout Shift). Users see unstyled text briefly before custom font loads.
This impacts Core Web Vitals and user experience.
Error Messages You Might See
Common Causes
- Loading fonts from CDN without preload
- Large font files not optimized or subsetted
- Font-display not set to optimal value
- Loading too many font variations
- Self-hosted fonts not configured for preload
How to Fix It
Add preload to head:
Use font-display: swap in @font-face to prevent invisible text
Subset fonts: include only characters you use
Use Next.js font optimization: import { Poppins } from 'next/font/google'
Limit to 2-3 font families max
Real developers can help you.
You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.
Get HelpFrequently Asked Questions
What's the best font-display value?
swap: shows system font immediately, updates when custom loads (best UX). fallback: wait 100ms then show system
Should I self-host or use CDN?
Self-host for control and speed. CDN (Google Fonts) if you want simplicity
How do I minimize font downloads?
Subset fonts to used characters, use variable fonts for multiple weights, limit to necessary fonts