# font-display

> font-display sets how text renders while a web font loads. Block and swap periods for each value, which to pick for body text and branding, and how to test it.

Canonical: https://scaplet.com/glossary/font-display

Glossary Glossary · Performance

font-display sets how text renders while a web font loads. Block and swap periods for each value, which to pick for body text and branding, and how to test it.

3 min

read

2

sources

Oct 28, 2026

updated

Scaplet Editorial Team

author

In one line

font-display is a CSS descriptor on @font-face that controls what users see while a web font loads: invisible text, a fallback font, or a swap once the font arrives. It takes auto, block, swap, fallback or optional. swap shows text soonest and eventually uses the web font, while optional skips a late font entirely.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ffont-display%20(%22font-display%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ffont-display%20(%22font-display%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ffont-display%20(%22font-display%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ffont-display%20(%22font-display%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

`@font-face`

Set on

`auto`, `block`, `swap`, `fallback`, `optional`

Values

`auto` (browser decides)

Initial value

`swap`, or `optional` if you accept a skipped font

Fastest text

_01_Periods per value. MDN states them qualitatively. The timings are web.dev's.

## The three periods behind every value

MDN describes a timeline that starts when the browser first tries to use a font face. In the block period, if the font isn't loaded, text must render in an invisible fallback. In the swap period, the fallback is visible and the web font replaces it if it arrives. After that is the failure period, where the load is treated as failed and normal fallback applies.

Value

### `auto`

Block period

Browser decides

Swap period

Browser decides

web.dev timings

Varies by browser

Value

### `block`

Block period

Short

Swap period

Infinite

web.dev timings

2 to 3 s block, infinite swap

Value

### `swap`

Block period

Extremely small

Swap period

Infinite

web.dev timings

0 ms block, infinite swap

Value

### `fallback`

Block period

Extremely small

Swap period

Short

web.dev timings

100 ms block, 3 s swap

Value

### `optional`

Block period

Extremely small

Swap period

None

web.dev timings

100 ms block, no swap

MDN gives no exact durations itself, and notes that in Firefox two preferences set the short and extremely small periods. web.dev adds that Chromium and Firefox block text for up to 3 seconds by default, while Safari blocks indefinitely, which is what you get if you never set the property.

_02_At a glance

## Anatomy of an @font-face rule

Part

### `font-display: swap`

What it does

web.dev says it delays text the least among values that eventually show the web font, and that a late swap can be jarring

Part

### `font-display: optional`

What it does

web.dev calls it the most performance-focused choice: text is delayed at most 100 ms and font-swap layout shifts are avoided. The tradeoff is that a late font is not used

Part

### `size-adjust`

What it does

web.dev says it can reduce layout shift between the fallback and the web font. The 105% here is only an example value

Part

### `woff2` format

What it does

web.dev says WOFF2 compresses 30% better than WOFF

Branding with swap, body text with optional

```
@font-face { font-family: "BrandDisplay"; src: url("/fonts/brand-display.woff2") format("woff2"); font-display: swap; /* text visible at once, swap if late */ } @font-face { font-family: "BodyText"; src: url("/fonts/body.woff2") format("woff2"); font-display: optional; /* skip the font if it is late, no layout shift */ size-adjust: 105%; /* narrows the fallback/web font size gap */ }
```

**block still shifts the layout**web.dev notes `block` can cause layout shift too: the fallback reserves space that may need adjusting when the font loads. A hidden-text period does not buy you layout stability.

_03_How it works

## Check it in 2 minutes

1. 1

### Throttle the network

In DevTools, set the Network panel to a slow preset and disable cache so the font arrives late.
2. 2

### Watch the first view

Reload and see whether text is invisible, shown in a fallback, or swapped. Compare with what you chose.
3. 3

### Check shifts

Look for text jumping when the font arrives. If it does, consider `optional`, a closer fallback or `size-adjust`.
4. 4

### Test the preload

If the font is found late, see [preload](/glossary/preload). Third-party hosts also benefit from [preconnect](/glossary/preconnect).

Is font-display set at all?

```
# Pull your stylesheet and look for @font-face rules without font-display curl -s https://example.com/styles.css | grep -o '@font-face[^}]*}' | grep -vc 'font-display' # 0 means every @font-face rule sets it. Check inline <style> blocks too.
```

_04_Your call

## Which value to pick

If this fits

### Use swap if

- The typeface is part of the brand and you want it shown whenever it arrives
- You accept a visible switch from the fallback
- Readable text on the first paint matters more than layout stability

Or

### Use optional if

- Body text, where a system font is a fine substitute
- Layout shift is the problem you are chasing
- You can accept that on a slow load the web font does not appear that visit

web.dev says you can combine them, such as swap for branding and optional for body text, and that icon fonts fit these strategies poorly, so it recommends replacing them with SVGs. For the audit view of text that stays hidden while fonts load, see [web fonts blocking text](/seo-issues/web-fonts-blocking-text).

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ What is the default font-display value?

`auto`, which leaves the strategy to the browser. web.dev says Chromium and Firefox block text for up to 3 seconds by default, while Safari blocks indefinitely.

_02_ Does font-display affect layout shift?

It can. `optional` avoids font-swap shifts because a late font is not used. `swap` and `block` can shift when the font arrives, and `size-adjust` can narrow the difference between fallback and web font.

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- mozilla.org
- web.dev

1. 01 [font-display (MDN)](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display) developer.mozilla.org · checked 2026-11-01
2. 02 [Best practices for fonts (web.dev)](https://web.dev/articles/font-best-practices) web.dev · checked 2026-11-01

## Keep learning

[All glossary](/glossary)

[Learn preconnect Performance](/glossary/preconnect) [Related Largest Contentful Paint Performance](/glossary/largest-contentful-paint) [Read next preload Performance](/glossary/preload) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Flesch Reading Ease](/glossary/flesch-reading-ease) [Follow links (dofollow)](/glossary/follow-links) [Free listings](/glossary/free-listings) [GA4 audiences](/glossary/ga4-audiences)

More in Performance
[Content-Length (HTTP header)](/glossary/content-length) [Core Web Vitals](/glossary/core-web-vitals) [Core Web Vitals report](/glossary/core-web-vitals-report) [CORS](/glossary/cors) [Critical CSS](/glossary/critical-css) [Critical rendering path](/glossary/critical-rendering-path) [Cumulative Layout Shift (CLS)](/glossary/cumulative-layout-shift) [dns-prefetch](/glossary/dns-prefetch) [Edge caching](/glossary/edge-caching) [fetchpriority](/glossary/fetchpriority) [First Contentful Paint](/glossary/first-contentful-paint) [First Input Delay (FID)](/glossary/first-input-delay) [font-display](/glossary/font-display) [Gzip compression](/glossary/gzip-compression) [HTTP caching](/glossary/http-caching) [HTTP/2](/glossary/http-2) [HTTP/3](/glossary/http-3) [Image compression](/glossary/image-compression) [Interaction to Next Paint (INP)](/glossary/interaction-to-next-paint) [Largest Contentful Paint](/glossary/largest-contentful-paint) [Lazy loading](/glossary/lazy-loading) [Lighthouse](/glossary/lighthouse) [Page experience](/glossary/page-experience) [Page speed](/glossary/page-speed)

Terms on this page
[preload](/glossary/preload) [preconnect](/glossary/preconnect)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
