Guide

Web fonts and page speed: Loading custom fonts without the wait

Web font performance improves when you load fewer font files, use efficient formats and choose how text appears while fonts download.

Web font performance improves when you load fewer font files, use efficient formats and choose how text appears while fonts download. You do not need to replace your brand typeface with a generic font to make your website faster. Most improvements come from removing unused weights, fixing duplicate requests, using WOFF2 files and loading the most important font at the right moment. The aim is to show readable text quickly while keeping the typography your customers recognise.

How web fonts affect page speed

Unlike fonts already installed on a visitor’s device, a custom font usually needs to be downloaded. The browser must discover the relevant stylesheet, identify the font required and request the file.

That process can introduce delays, particularly on slower connections.

Why text sometimes appears late

Browsers do not always show text immediately when a custom font is requested.

Depending on the font loading configuration, visitors may see an empty space before the letters appear.

Another approach displays text using an available fallback font first. When the custom font arrives, the browser replaces the fallback.

That is a font swap.

Web font performance timelines: with block, text stays invisible until the brand font arrives; with swap, fallback text shows first and is swapped to the brand font

Neither behaviour automatically means the website is broken. The problem arises when visitors wait unnecessarily for important information or see the layout move during a swap.

The connection to Core Web Vitals

Two useful performance measurements are Largest Contentful Paint (LCP) and Cumulative Layout Shift (CLS).

LCP measures when the largest visible content element finishes rendering.

When the required font delays that text, LCP can suffer. Google’s Largest Contentful Paint guidance explains how text elements can contribute to this measurement.

Our guide to text as the LCP element covers the wider diagnosis.

CLS measures unexpected movement of visible content. If the fallback font and brand font occupy different amounts of space, a heading may wrap differently when the replacement arrives.

That movement can push content down the page.

The important distinction is that font loading affects more than download size.

Audit the fonts your site loads

Before changing anything, identify exactly which web fonts the website requests.

Start with a representative page, preferably the homepage, then examine a service page and a longer article.

Count the actual requests

  • Font family and file name.
  • Weight and style, including italic variations.
  • File format and transferred size.
  • Domain serving each file.
  • Whether the same font appears more than once.
  • Which visible elements use each variation.

A designer may specify several weights in the style guide while the live page uses only regular and bold.

Find theme and page builder duplicates

The theme may request one family, while Elementor or another page builder introduces its own font loading rules.

Check font settings in Elementor before modifying typography at individual widget level.

Also examine how theme choice affects code weight, because unnecessary theme assets can add requests beyond typography.

Check icon libraries

An icon font may load even when the page displays only a few icons.

Inspect navigation arrows, social links, contact symbols and buttons.

Agree what stays

Confirm the approved heading font, body font, required weights and any special characters or languages.

If the audit reveals broader loading problems, our website performance diagnosis and fixes can help identify which changes deserve attention first.

5 fixes that improve web font performance

There is no single setting that makes every website fast. Choose techniques based on the audit, test each change and retain the visual behaviour your brand requires.

Font loading techniques compared

TechniqueWhat it solvesEffortRisk if done wrong
Remove unused weightsUnnecessary font downloadsLowMissing typography variations
Use WOFF2Larger, less efficient formatsLow to mediumIncorrect conversion or compatibility problems
Self-host fontsThird-party font connectionsMediumPoor caching or licence violations
font-display swapText remaining invisible while loadingLowVisible font changes and layout shift
Preload critical fontLate discovery of an important fontMediumCompeting with more important resources
Subset charactersUnused characters increasing file sizeMediumMissing symbols or language characters
Fallback metric overridesLayout changes during font replacementMedium to highIncorrect spacing or text wrapping
Replace icon font with SVGLarge icon libraries for few iconsMediumMissing icons or accessibility issues

1. Load fewer font files

Each separate font file adds another potential request.

Ask which differences customers can genuinely see.

For many business websites, regular body text and a heavier heading weight cover most requirements.

A variable font may provide multiple weights within one file, although its size and browser usage still need checking.

Next, review the format.

WOFF2 is a compressed format designed for web delivery and widely supported by modern browsers.

If the font licence allows it, consider character subsetting.

However, never remove characters simply because they are absent from the homepage.

Many font files reduced to two WOFF2 files, regular and bold

2. Self-host the files you keep

Self-hosting means delivering the font from your own website infrastructure rather than requesting it from a separate font provider. This gives you more direct control over caching, filenames, versions and delivery.

For WordPress, the implementation might involve locally stored font files registered through the theme, a custom plugin or appropriate page builder settings.

Remove the original remote request only after confirming that the replacement works.

Serving fonts locally is not an automatic speed guarantee. Hosting quality, caching and file optimisation still matter.

3. Choose the right font-display value

The CSS font-display property controls how browsers handle text while a custom font is unavailable. For many websites, swap is a practical starting point.

With this setting, the browser shows fallback text immediately and replaces it when the requested font becomes available.

This reduces the risk of visitors staring at invisible text. A self-hosted declaration might look like this, with your own file path and font name:

@font-face {
  font-family: "Brand Sans";
  src: url("/fonts/brand-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

The trade-off is that replacement can create a visible change.

Another option, optional, gives the custom font a limited opportunity to appear.

Choose based on whether immediate readability or consistent brand typography matters most for the element.

Do not apply one rule everywhere without testing headings, body copy and buttons.

4. Preload only the first-screen font

Preloading tells the browser to request a resource early, before it would normally discover it. This can help when a critical heading uses a font that would otherwise be found late. However, preload is not a general instruction to download every font immediately.

Each early request competes with images, stylesheets and other resources needed to render the page.

Start with the exact font file used by an important first-screen text element, if testing shows that it is discovered too late.

Ensure the preload URL matches the file actually requested and uses the correct resource attributes. Font preloads need the crossorigin attribute, even for files on your own domain:

<link rel="preload" href="/fonts/brand-sans-700.woff2" as="font" type="font/woff2" crossorigin>

Google’s font performance best practices explain why early discovery, efficient formats and careful preloading matter.

5. Match fallback font metrics

A fallback font keeps text readable while the custom typeface loads. Unfortunately, different fonts can have different character widths, line heights and proportions.

That means a heading may occupy two lines initially and three lines after the swap.

CSS provides metric overrides, including size-adjust, ascent-override, descent-override and line-gap-override, that can help align fallback typography with the intended font.

These properties require careful measurement rather than arbitrary values.

A developer should compare the rendered heading, paragraph spacing and button dimensions before and after the custom font arrives.

Self-hosting versus Google Fonts

When a site requests Google Fonts remotely, the browser may need additional connections to retrieve the stylesheet and font resources.

A self-hosted setup can remove those external connection steps.

It also allows a developer to choose precisely which WOFF2 files remain in use.

However, remote delivery can already include useful optimisation, such as compressed formats and language subsets.

A badly configured local setup may perform worse than a properly configured remote one.

Check permissions before moving files

Not every commercial font licence permits self-hosting.

Check the licence for web use, file conversion, hosting restrictions and permitted domains.

Do not assume that purchasing a desktop font grants the right to serve it through a website.

Some businesses also prefer local delivery because it reduces requests to third-party services and simplifies parts of their privacy review.

That decision should form part of a broader assessment of other third-party requests.

If the website retains remotely hosted fonts, test the connection and consider appropriate preconnect hints.

The decision should be based on measured results, licence terms and maintenance requirements, not a blanket belief that one method is always superior.

font-display: swap or optional

The two values most business websites should understand are swap and optional.

Both influence how text behaves while the font downloads, but they make different trade-offs.

When swap makes sense

With font-display: swap, visitors can read fallback text immediately.

This is useful when the desired typeface should eventually appear during the current page load.

However, that change can produce movement if the fonts differ in size or spacing.

Google’s guidance on Cumulative Layout Shift explains why unexpected layout movement affects the user experience.

You can also review layout shifts caused by fonts when diagnosing an unstable page.

When optional makes sense

With font-display: optional, the browser has a short opportunity to use the custom font.

This can reduce disruptive late changes, especially for body text.

The cost is that some visitors may not see the brand font on that page load.

For a body typeface with a well-matched fallback, it may be reasonable.

Test both behaviours with an empty browser cache and a slower connection.

Avoid treating font-display as a universal fix. It controls rendering behaviour, not the size of the font file or the number of downloads.

Similarly, preloading several fonts cannot compensate for a page that requests unnecessary resources.

Fix the request list first, then optimise how the remaining files appear.

Icon fonts and lighter alternatives

Typography audits often reveal assets that have little to do with written text.

Icon fonts package symbols into a font file. They can be convenient when a website uses a large, consistent icon library.

But loading a complete library for a few arrows or social icons may be unnecessary.

SVG, or Scalable Vector Graphics, provides an alternative.

An SVG describes an icon using vector shapes, allowing it to remain sharp at different sizes.

For a small number of simple icons, inline SVG can avoid a separate icon font request.

Check what your page builder loads

WordPress themes and page builders may include icon libraries for their own widgets.

Removing a library without identifying its dependencies can break navigation controls, forms or mobile menus.

Begin by listing the icons actually visible on the tested page.

Then identify which files provide them.

Replace suitable icons with SVG only after checking appearance, hover states, colour inheritance and accessibility.

Decorative icons should not create unnecessary announcements for screen reader users.

Also check SVG security and sanitisation when uploading custom files.

The best approach is selective replacement, not automatically replacing every icon font on every website.

If the site genuinely uses many icons from one well-cached library, retaining that library may be the simpler choice.

Hypothetical example: one brand font, eleven files

Hypothetical example: A financial adviser’s website uses one approved brand typeface.

The theme loads four weights from Google Fonts. The page builder requests two additional weights, and an icon font is included for six small icons.

The full audit identifies eleven font-related files across the page and its supporting styles.

Instead, the designer confirms that the current layout needs just two weights: regular body text and bold headings.

The developer prepares two licensed, self-hosted WOFF2 files and updates the website’s font declarations.

They remove unnecessary remote font requests, resolve overlapping theme and page builder settings, and replace the six icon font symbols with suitable SVG assets.

Only the critical heading font is considered for preload, after checking its discovery timing.

The body font uses an appropriate fallback while it downloads.

What changes for visitors?

The intended design remains the same: familiar headings, consistent paragraph typography and matching icon shapes.

Behind the scenes, the browser has fewer font-related resources to manage.

The developer compares the original and revised pages on desktop and mobile, checking text wrapping and layout stability.

The objective is not to claim a particular speed increase. It is to demonstrate that unnecessary downloads can be removed without abandoning the visual identity.

A real website might need more than two files, particularly when it supports several languages or genuinely uses additional styles.

The audit determines the right number.

Check the result

A smaller request list is useful evidence, but it does not establish that the page now feels better or that every performance metric has improved.

Compare before and after

Open the Network panel and repeat the same test under comparable conditions.

Count actual font requests and record their transferred sizes.

Check whether font files come from the expected domain and whether duplicate downloads remain.

Inspect resource timing to see when the most important font is discovered.

Then test the relevant pages with a cold cache and again with caching enabled.

Checks after a font change: count requests, check LCP, watch CLS and test on a phone

Check LCP and CLS

If the main LCP element is text, examine whether the revised font loading approach allows it to render earlier.

If the largest element is an image, font changes may have a smaller direct effect on LCP.

Also watch CLS while fonts swap.

A small width difference can change how words wrap and move surrounding content.

Test on a real phone

A page that looks stable on a desktop monitor may behave differently on a narrow screen.

Open it on a real phone, ideally using a connection representative of your visitors.

Check that headings remain readable, buttons do not overflow and no text disappears during loading.

Review accented characters, symbols and any languages supported by the business.

Finally, ask the designer to approve the result.

The website should keep its intended brand appearance while using a more deliberate font loading strategy.

Common questions

Are Google Fonts bad for page speed?

Not necessarily. The main cost often comes from how many font files a website loads, how large they are and when the browser discovers them. Google Fonts can deliver optimised files, but unnecessary weights still add requests. Self-hosting removes a connection to another server and provides greater control. Check the font licence before moving files locally.

What does font-display swap do?

The font-display swap setting allows the browser to show text using a fallback font straight away. When the requested web font arrives, the browser replaces the fallback with the intended typeface. This improves immediate readability, but the replacement can produce a small layout shift if the two fonts have different widths or proportions.

How many font weights should a website use?

There is no fixed rule. The right number depends on the design, readability requirements and how the font is supplied. Each weight and style in a conventional static font family can require a separate file, so most business websites can manage with a few carefully chosen variations. Variable fonts may package several weights into one resource.

Should I use WOFF2 fonts?

Yes. WOFF2 is a compressed web font format with wide support across modern browsers. It generally provides efficient delivery compared with older web font formats. Use appropriately optimised files and keep only the styles your website needs. Convert or self-host fonts only when your licence permits those uses, and verify that all required characters remain available.

Do fonts affect Core Web Vitals?

Yes. Web fonts can delay Largest Contentful Paint when the largest visible element is text and its rendering depends on a font arriving. Font swaps can also cause layout shift when fallback and brand fonts occupy different amounts of space. Count requests, test rendering behaviour and measure the results rather than assuming every font download is harmful.

Your next step

This week, open your homepage in Chrome Developer Tools and count the font files downloaded on a fresh load.

Write down the families, weights, domains and sizes, then compare them with the typography your design actually needs.

If you find unexplained duplicates or late-loading fonts, send a developer the page URL, Network panel screenshot, approved font list and current performance report.

If your fonts are holding up your pages, our website performance work trims and reloads them without changing your brand, typically $400-$1,800. Or send your URL for the free audit and a plain-language reply within two working days.

Keep reading.

All guides
  • Speed · 8 min read

    Elementor website speed

    Make an existing Elementor website faster by isolating the bottleneck, simplifying shared templates and testing optimisation settings against real customer journeys.

  • Build · 7 min read

    Custom WordPress theme vs. premium template

    A balanced theme decision guide covering practical editing, performance, content portability and the maintenance obligations behind each approach.

  • Guide · 12 min read

    Third-Party scripts

    Third-party scripts can slow a website through extra connections, JavaScript work and layout changes. The solution is to measure each tool before deciding what stays.

Next step

Want this looked at on your website?

Send the site and a few lines about what is going wrong. Mian replies by email within one working day with a short initial review of your issue: what he would check first and how he would approach it.

What is this about?

We only use your details to reply to you. Privacy notice

Get WordPress help