Your browser can show you every font file a page downloads, how large each one is, and when it started. This page uses Chrome's tools. Other browsers have similar panels, but the names and menus differ, so check their own help pages.
Set up the view
In Chrome DevTools, open the Network panel. Then make three small changes before you reload the page.
- Turn off the cache. Check the Disable cache box. That more accurately matches a first-time visitor's experience, because repeat visits are served from the browser cache.1
- Filter to fonts. The panel has buttons to filter by resource type, and one of them is Font.1
- Reload the page. Fonts are asked for after the browser has worked out what the page needs, so they usually appear after other files.2
Read what you see
Each row is a file. Two columns answer most questions.
| Column | What it tells you |
|---|---|
| Size | The combined size of the response headers plus the response body, as delivered by the server1 |
| Time | The total duration, from the start of the request to the receipt of the final byte in the response1 |
| Waterfall | A visual breakdown of each request's activity1 |
The Waterfall shows when requests start relative to each other. By default it's ordered by start time, so rows nearer the left started earlier.1
You can also see a total. DevTools lists the total size of transferred and loaded resources in the status bar at the bottom of the panel.1 That figure counts all file types, not only fonts, and only requests since DevTools was opened.1
Questions to ask of the list
Go down the font rows and ask:
- Which formats? The file names tell you. MDN says WOFF2 compresses fonts more efficiently than older formats, so see which formats a site needs.3
- How many files? Several rows for one family may mean several styles. See how many fonts and weights.
- Where from? The address tells you whether they come from your own site or a font service. That's the choice covered in self-hosting or a font service.
- Do they start late? If a font's bar begins well to the right in the Waterfall, the browser found out about it late. Font requests are sent after the browser has worked out which font variants the text needs.2 See how a font gets to the page.
web.dev says that if you're unsure your fonts are requested in time, check the Timing tab within the Network panel.4
Try a slower connection
Your own connection may be fast enough to hide the problem. Chrome lets you pick a preset: fast 4G, slow 4G or 3G, from the Throttling drop-down menu at the top of the panel.1 Reload and look at the font rows again. Throttling turns on a warning icon beside the panel as a reminder, so remember to switch it off afterwards.1
Comparing two setups
If you're weighing two options, such as your own file against a font service, do the same steps for each and compare the Time of the font row. web.dev suggests the same approach for self-hosting: compare transfer time, including connection set-up.4 Note the results before you change anything, so you can undo a change that makes things worse.
You won't see a verdict from DevTools. It only shows what loaded and when. What you do with that is your call.
Cited material
- Network features reference, Chrome for Developers (Google)
- Optimize WebFont loading and rendering, web.dev (Google)
- @font-face, MDN Web Docs (Mozilla)
- Best practices for fonts, web.dev (Google)
