How to use it
- 1
Paste a public page URL.
- 2
WebDiag checks inline CSS and up to 12 external stylesheets for @font-face rules.
- 3
Review font-display, families, sources, WOFF2 signals, matched preloads, bytes, and cache headers.
What the tool can do
- Parses family, style, weight, font-display, local(), and URL sources.
- Correlates link rel=preload as=font with discovered @font-face URLs.
- Checks font MIME, Content-Length, cache policy, redirects, and public-target safety.
Common use cases
- Find @font-face rules without an explicit font-display.
- Find preload URLs that do not match static CSS sources.
- Review family/weight counts and known declared font bytes.
How it works inside
The CSS parser is bounded and does not execute JavaScript-generated stylesheets or the runtime CSSOM.
Not every font should be preloaded: the tool checks consistency of existing preloads rather than requiring a preload for every file.
Questions and answers
Which font-display value is best?
There is no universal answer. The tool surfaces missing values or block, but choosing swap, optional, fallback, or another behavior depends on the product and metrics.
Why is a missing preload not treated as an error?
Preload is useful only for a limited set of critical fonts. Preloading everything can compete with other resources.
