Most websites load their typefaces from the internet: the 2024 Web Almanac found web fonts on around 87% of sites. Each one is a file the browser has to find, download and apply before the text looks the way the designer intended, and until it arrives the browser either hides the text or shows it in a different font. How much that costs depends on how many fonts you use and how you load them, and most advice on the subject is either a rule of thumb or a single test run. So we measured it. We built one page and loaded it with system fonts only, then with one, two, three, four and five web font families, and then with two families loaded four different ways: preloaded, with font-display set to block, with optional, and straight from Google Fonts. Every variant was loaded 12 times in shuffled order on an emulated mid-range phone over a slow 4G connection. This guide gives the results, explains each loading option, and ends with how many fonts a website should actually use.
— Guide
Web fonts and page speed: what each extra font costs
We loaded the same page with no web fonts, then one to five, plus four different ways of loading them: 120 loads on a throttled phone, and what the numbers say about font-display, preload, Google Fonts and the fonts already on your visitor’s device.
What web fonts cost in our test (median of 12 loads, emulated phone on slow 4G)
| Setup | Font files | Font data | Main text visible | All fonts in place | Worst layout shift |
|---|---|---|---|---|---|
| System fonts only | 0 | 0 KB | 0.58 s | Immediately | 0 |
| 1 family (Roboto) | 1 | 42 KB | 0.57 s | 0.63 s | 0 |
| 2 families (+ Playfair Display) | 2 | 80 KB | 0.57 s | 0.85 s | 0.004 |
| 3 families (+ Open Sans) | 3 | 128 KB | 0.54 s | 1.06 s | 0.005 |
| 4 families (+ Lora) | 4 | 165 KB | 0.54 s | 1.22 s | 0.097 |
| 5 families (+ Merriweather) | 5 | 260 KB | 0.56 s | 1.74 s | 0.095 |
| 2 families, preloaded | 2 | 80 KB | 0.74 s | 0.80 s | 0 |
| 2 families, font-display: block | 2 | 80 KB | 0.93 s | 0.81 s | 0 |
| 2 families, font-display: optional | 2 | 80 KB | 0.59 s | Next page view | 0 |
| 2 families from Google Fonts | 2 | 80 KB | 0.89 s | 1.13 s | 0.004 |
Our test, 10 October 2026: one page, Chrome with phone emulation, 150 ms round trip, 1.6 Mbps download, 4× CPU slowdown, cache disabled, 12 loads per row in shuffled order. "Main text visible" is Largest Contentful Paint; "All fonts in place" is when the last font file finished downloading; layout shift is the worst of the 12 runs, where Google’s threshold for good is 0.1. Self-hosted rows used font-display: swap unless stated. With optional, the browser used the fonts only if they were ready almost at once; on this connection they were not, so the first view kept the fallback.
How a web font gets onto the screen
A web font is not part of the page. The browser first downloads the HTML, then the CSS, and only when it has worked out which text needs which font does it request the font files. That makes fonts some of the last resources to start downloading, and the text they style is usually the most important thing on the page.
While the file is on its way, the browser has two choices: hide the text and wait, or show it in a fallback font and swap when the web font arrives. The CSS property font-display decides which, and it is the single most important line in any font setup. Hidden text is the "flash of invisible text"; text that changes typeface as you read it is the "flash of unstyled text", and if the two fonts take up different amounts of space, the page jumps.
What each extra font costs: our measurement
With font-display set to swap, extra fonts did not delay the moment the text appeared; they delayed the moment the page stopped changing. The main text was visible after 0.54 to 0.58 seconds in every variant, from system fonts to five families, because the browser painted it in the fallback font straight away. What grew was the time until every web font had arrived: 0.63 seconds with one family, 0.85 with two, 1.06 with three, 1.22 with four and 1.74 with five.
Size mattered more than count. Each family after the first added about 0.2 seconds, until the fifth, Merriweather at 95 KB and twice the size of any other family in the test, added half a second on its own. The font data on the page grew from 42 KB with one family to 260 KB with five, on a page whose HTML and CSS weighed 3 KB.
Layout stability was the other cost. Up to three families, the swap moved nothing measurable. With four and five, the worst run reached a layout shift of 0.097, just under the 0.1 that Google counts as good in its Core Web Vitals. That is the swap itself: fallback text reflowing when a font with different proportions replaces it.
font-display: block, swap, fallback and optional
There are five values. With block, the browser hides the text for a short period, about three seconds as recommended, and then shows it in the fallback until the font arrives. With swap, it shows the fallback immediately and swaps whenever the font arrives, however late. With fallback, it hides the text for a moment, at most around 100 milliseconds, then shows the fallback and swaps only if the font arrives within a few seconds. With optional, it waits that same moment and then keeps whatever it has: if the font is not ready, the fallback stays for this page view, and the downloaded font is used on the next one. The fifth, auto, leaves the choice to the browser.
Our test shows the trade-off in numbers. With block, the main text became visible at 0.93 seconds instead of 0.57, about 360 milliseconds of blank space where the headline should be. With optional, the text appeared as fast as with swap and nothing shifted, but on our slow connection the first view never showed the web fonts at all.
For most sites, swap is the right default for body text, paired with a well-matched fallback so the swap does not move the page. Optional is the better choice when the typeface is a nice-to-have and stability matters more, and block belongs nowhere near body text. The Web Almanac found swap on 45% of mobile pages and block on 23%, so almost a quarter of the web still hides its text while fonts load.
Google Fonts or self-hosted?
Loading the same two fonts from Google Fonts instead of our own server made the main text appear 0.32 seconds later, 0.89 seconds instead of 0.57. The font files were the same size. The difference is the route: the page first downloads a stylesheet from fonts.googleapis.com, which blocks rendering, and then the font files from a second domain, fonts.gstatic.com, so the browser has to open two extra connections before a single letter of the web font arrives.
The old argument for Google Fonts was caching: a visitor who had already seen Roboto on another site would have it ready. That ended with Chrome 86 in 2020, when Chrome began partitioning its cache by site, as Safari already did; a font downloaded for one website is no longer reused by another. Every site pays for its own fonts either way.
In the EU there is also a legal reason. In January 2022 the Regional Court of Munich ordered a website owner to pay a visitor €100 in damages because the site loaded Google Fonts from Google’s servers, which passed the visitor’s IP address to Google without consent. The court noted that the fonts could be used without that transfer, by hosting them yourself. The ruling triggered a wave of warning letters in Germany, and self-hosting removes the issue entirely. Google Fonts’ licences allow it: download the files, put them on your own server and reference them from your CSS.
Preload: when it helps and when it does not
A preload hint tells the browser to fetch a font before it discovers that it needs it. It helps when fonts are discovered late, typically when they are referenced from an external stylesheet, which itself has to download and be parsed first. In that case a preload can save a full round trip.
It does not help when the browser already finds the fonts early, and it can hurt. In our test the font rules were in the page itself, so the browser found them at once. Preloading both families brought the fonts in only 0.05 seconds sooner and pushed the first paint from 0.57 to 0.74 seconds. Preload one or two files that are used above the fold and referenced from an external stylesheet, not every weight you own. The Web Almanac found font preloads on 11% of pages. They need the crossorigin attribute even on your own domain, or the browser downloads the file twice.
Make each file smaller: WOFF2, subsets and variable fonts
Use WOFF2, the compressed font format every current browser supports; the Web Almanac found it on 78% of mobile sites. Then subset: a font that covers Latin, Cyrillic, Greek and Vietnamese carries thousands of characters an English or German page never uses. Google Fonts already splits families by script with the unicode-range descriptor, so the browser downloads only the parts a page needs.
Variable fonts are the other big saving. A variable font holds every weight in one file, and Google Fonts now serves one for many families: in our test Roboto’s regular and bold, and the same for all five families, came from a single file each. One 42 KB file replaced what used to be one file per weight. The Web Almanac found variable fonts on about a third of pages.
Our own site is a working example. Google served our typeface, Inter, as two files: a Latin file of 47 KB and a Latin Extended file of 83 KB, the second downloaded on every page because of six Romanian letters. We built one subset containing Latin plus exactly the extended characters we use, 55 KB in a single file, self-hosted and preloaded. Every page now carries 55 KB of font instead of 131 KB.
Using the fonts already on the visitor’s device
The fastest web font is the one you do not download. Every operating system ships a well-designed interface font: Segoe UI on Windows, San Francisco on Apple devices, Roboto on Android. The CSS generic family system-ui asks for exactly that, without naming any of them; the CSS specification describes it as the default user interface font of the platform, meant to let a page "integrate with the look and feel of the native OS". A typical declaration is font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif, where the named fonts are fallbacks for older browsers.
The benefits are exactly the costs in our table, removed. No font files, so nothing to download and no extra request. No swap, so no layout shift and no flash of text changing typeface. Text renders at the first paint, in a font the visitor’s device draws well because it was designed for that screen. Our system-font variant carried 0 KB of fonts on a 3 KB page.
The trade-off is control. The page looks slightly different on Windows, a Mac and a phone, and you cannot use a typeface as part of your brand. That makes system fonts ideal for body text, admin panels, dashboards and apps, and a reasonable choice for body copy even when headings use a brand font. They are the modern version of "web safe fonts" such as Arial and Georgia, with the difference that system-ui adapts to each device instead of forcing one font on all of them.
Stopping the swap from moving the page
The layout shift in our four- and five-family runs came from fallback text taking up different space from the web font. CSS can fix that with four descriptors on a fallback @font-face: size-adjust scales the fallback’s letters, and ascent-override, descent-override and line-gap-override match its line height. Set them so that Arial, for example, occupies the same space as your web font, and the swap changes the look of the letters without moving anything.
That is what our own site does: our @font-face for "Inter Fallback" points at the Arial already on the device and sets size-adjust to 107.89%, ascent to 89.79% and descent to 22.36%, values derived from Inter’s own metrics. Frameworks can generate these values for you, and they are worth having whenever you use swap.
How many fonts should a website use?
For most websites the answer is one web font family, at most two, and every family after that costs more than it adds. In our test, each family beyond the first added roughly 0.2 seconds before the page stopped changing, and four or more pushed layout shift close to Google’s limit. One variable family covers headings, body text and buttons in every weight you need.
If you want a second family for headings, make it a variable font, subset it, and load it with swap and a matched fallback, or with optional if it is decorative. Self-host both. Consider system fonts for body text and keep the brand font for headings only. And measure your own pages rather than trusting a single score: how to get a 100 PageSpeed score explains what one Lighthouse run can and cannot tell you, and what your server does to PageSpeed covers compression and caching, which apply to font files too.
If your site carries more fonts than it needs, a Technical Audit measures what each one costs on your real pages and gives you the order to fix them in.
— FAQ
Frequently asked questions
Sources and method
Our test ran on 10 October 2026: one HTML page with five type roles (body, headings, navigation, quote, footer), each extra family taking over one role. Font files were the Latin subsets Google Fonts served to current Chrome that day, self-hosted on a local server unless stated. Chrome with phone emulation (412×823), 150 ms round trip, 1.6 Mbps download, 750 Kbps upload, 4× CPU slowdown, cache disabled; 10 variants × 12 loads in shuffled order per round; medians reported.
- HTTP Archive — Web Almanac 2024, Fonts ↗
Web fonts on around 87% of websites; font-display swap on 45% and block on 23% of mobile pages; font preload on 11% of pages; variable fonts on about a third; WOFF2 on 78% of mobile sites; Google Fonts on 48% of mobile sites.
- MDN — font-display ↗
Definitions of auto, block, swap, fallback and optional in terms of block and swap periods.
- Chrome for Developers — Controlling font performance with font-display ↗
Recommended durations: a short block period of 3 seconds for block, an extremely small block period of 100 ms or less for fallback and optional, and a short swap period of 3 seconds for fallback.
- W3C — CSS Fonts Module Level 4, system-ui ↗
system-ui renders text in the default user interface font of the platform, to let web content integrate with the look and feel of the native OS.
- web.dev — CSS size-adjust for @font-face ↗
How size-adjust and the ascent, descent and line-gap overrides match a fallback font to a web font so the swap does not shift the layout.
- Chrome for Developers — Gaining security and privacy by partitioning the cache ↗
From Chrome 86, the HTTP cache is keyed by top-level site as well as URL, so a resource cached for one site is not reused by another.
- IHK — LG München I, judgment of 20 January 2022, 3 O 17493/20 ↗
The Regional Court of Munich awarded €100 in damages under Article 82 GDPR for passing a visitor’s IP address to Google by loading Google Fonts from Google’s servers without consent.
Want to know what your fonts cost?
We measure your real pages on a real phone profile, find the fonts and files you do not need, and fix the loading so the text appears first.