How to Load Web Fonts Fast Without Layout Shift
Check font-display, preloads and formats, write clean @font-face rules, and build a size-adjusted fallback font so the font swap barely moves text.

How to Load Web Fonts Fast Without Layout Shift
Custom fonts make a brand recognisable, but they arrive after the HTML and CSS, and the way a site handles that wait affects both speed and stability. Either text is invisible until the font arrives, which can delay Largest Contentful Paint, or text shows in a fallback font and jumps when the real font replaces it, which adds Cumulative Layout Shift. With a few careful rules you can avoid both.
Check what you have
Paste your @font-face rules and the link tags from your page head into the Web Font Loading Optimizer. The audit lists each font face with its family, weight, style, font-display and source formats, and flags the patterns that cause trouble.
The common findings are no font-display at all, which in most browsers hides text for up to three seconds; block or auto, which do the same; TTF or OTF files listed before woff2; old EOT and SVG sources; font preloads without the crossorigin attribute, which makes the browser download the font twice; more than two preloads competing with the hero image; Google Fonts links without the display parameter; and fonts pulled in with @import, which delays them behind your stylesheet.
Write clean rules
The build tab rewrites each rule with woff2 first, the font-display value you choose and the original unicode-range. Every current browser supports woff2, and it is the smallest format. It also produces preload tags; keep only the one or two fonts used in the first screen, usually the body text and the main heading weight.
Choosing font-display is a trade-off. swap shows text immediately in the fallback and swaps when the font arrives. optional gives the font a very short window and keeps the fallback if it misses, which removes the shift completely but can show the fallback on a slow first visit. For body text optional is often the best choice; for logos and headings that must look right, use swap with a matched fallback.
Match the fallback
The shift during a swap happens because the fallback and the web font have different widths and line heights. CSS can fix that. You define a new font face that points at a local font such as Arial, with size-adjust to scale its width and ascent-override, descent-override and line-gap-override to match the vertical metrics.
Open your font file in the fallback tab. The page loads it into the browser, measures its average character width and its ascent and descent, measures the local font the same way, and computes the values. The output is a ready fallback rule and a font-family stack that lists your font, then the adjusted fallback, then a generic family. A preview shows the adjusted fallback next to the plain one so you can see the difference.
Other good habits
Self-hosting fonts removes an extra connection and stops visitors' IP addresses going to a third party. Subsetting fonts to the characters your languages need, and splitting them with unicode-range, can halve file sizes. Variable fonts replace several weights with one file. Check your licence allows self-hosting before you move files.
Measure the result
After the change, record a trace and check LCP and layout shifts again. If text appeared earlier and the swap no longer moves lines, the fonts are working for you instead of against you.
How many fonts is too many
Every family and weight is another file. Most sites look just as good with one family in two or three weights. If designers want more, try a variable font, which covers every weight in one file, and measure whether it is smaller than the static files you actually use.



