Website Pricing Guide

Enter your email to get instant access to our website pricing guide.

How to Avoid the Performance Pitfalls of Web Fonts

November 25, 2024 by
Web fonts bring personality to your site, but they also add weight. And if your fonts take too long to load, users are left staring at a blank screen. Even worse, your site might look unstable as text shifts unexpectedly. This also hurts Core Web Vitals — the metrics that directly affect your search ranking […]


Web fonts bring personality to your site, but they also add weight.

And if your fonts take too long to load, users are left staring at a blank screen. Even worse, your site might look unstable as text shifts unexpectedly.

This also hurts Core Web Vitals — the metrics that directly affect your search ranking and user experience.

Here, every millisecond matters.

So, how can you keep your choice of web fonts without sacrificing performance?

Let’s break it down, one step at a time.

But first, what exactly are web safe fonts and web fonts?

What Are Web Safe Fonts?

Web safe fonts are the tried-and-true options that work everywhere. They’re fonts most devices already have, which means you can count on them to load quickly.

Diagram Explaining What Website Fonts; Showing A Server Connecting To A Browser And Vice Versa, And Browser To The User'S Computer And Fonts Back To The Browser
How To Avoid The Performance Pitfalls Of Web Fonts 54

Here are the web safe fonts you can use:

  • Arial
  • Times New Roman
  • Verdana
  • Trebuchet MS
  • Courier
  • Impact
  • Georgia
  • Comic Sans MS

Even with limited choices, a skilled designer can use these fonts creatively.

But, websafe fonts are often overused and give your website a “similar” feel — even when you’ve put a lot of effort and money in designing the website.

So how do you make it look prettier?

With web fonts.

What Are Web Fonts?

Example Of Different Google Fonts Showing The Example Using The Sentence &Quot;Everyone Ha The Right To Free Of Thought&Quot; In Three Different Font Types
How To Avoid The Performance Pitfalls Of Web Fonts 55

Web fonts let you move away from the often overused websafe fonts.

Instead of relying on fonts available on a user’s device, web fonts can be downloaded from an external source like Google Fonts or directly from your server onto your user’s device (temporarily).

This allows you to use any custom font that matches your brand or design needs.

We have also curated the best Google fonts to help you get started.

When a user visits your site, the web font is temporarily downloaded and applied to the text using the @font-face rule in CSS.

Web fonts then begin to behave like local fonts — They auto-adjust to the screen sizes while keeping your website looking sharp.

Fonts have also evolved over time to have more efficient storage formats. Similar image formats, fonts have TTF, WOFF, WOFF2, and EOT.

  • Embedded OpenType (EOT): Compatible with older versions of Internet Explorer (below IE9). Not compressed by default, but GZIP compression can be applied.
  • TrueType (TTF): Supported by older Android browsers (below version 4.4). It’s uncompressed by default but can be GZIP-compressed.
  • Web Open Font Format (WOFF): Supported by most modern browsers and includes built-in compression.
  • Web Open Font Format 2 (WOFF2): Compatible with browsers that support it, featuring custom compression algorithms that reduce file size by around 30% compared to other formats.

The modern formats offer compression for better performance and help keep your site’s design both functional and visually distinct.

What Are Core Web Vitals (CWV) Metrics?

Here’s the thing: Google wants all of its users to have an excellent experience.

Whichever website or app gives Google’s users the best experience will get more “love” from Google’s algorithms.

And how’s this “experience measured?

Google launched Core Web Vitals in early 2020 for just that purpose.

CWV is a set of three metrics that tell Google how your website or app performs for the users they send there.

Lcp Vs Inp Vs Cls Showing Different Measurements On A Scale From Good-Needs Improvement-Bad
How To Avoid The Performance Pitfalls Of Web Fonts 56

Higher scores on these metrics can help you rank higher on Google. Let’s quickly go over these metrics.

Largest Contentful Paint (LCP)

LCP measures how long it takes for the largest visible element on your page to load.

This is generally an image or video but could be a large block of text or an embedded video.

The faster this happens, the better your site performs in the eyes of both users and search engines.

A good LCP score means users aren’t left waiting for your main content to appear.

Interaction to Next Paint (INP)

INP measures the time between a user’s interaction (like clicking or tapping) and when the page responds visually.

It gives a more accurate picture of interactivity than FID, as it considers the full user journey rather than just the first interaction.

A low INP score means your site feels responsive, improving user engagement and satisfaction.

Cumulative Layout Shift (CLS)

CLS measures how stable your page is while loading.

When elements move around unexpectedly, it frustrates users and makes the page feel unreliable.

A low CLS score means your page loads smoothly, without layout shifts that disrupt the user experience.

Get Content Delivered Straight to Your Inbox

Subscribe now to receive all the latest updates, delivered directly to your inbox.

How To Optimize Web Fonts for Better Core Web Vitals

So, what’s all the fuss about web font performance?

Why can’t we just add web fonts and call it a day? Well, you can.

But as we’ve talked about before, web fonts aren’t local. They are fetched from a server, downloaded, and applied to your site, and that’s where the problem lies.

It takes time.

And if it takes too long, it affects your Core Web Vitals and website conversion rate.

Let’s look at some ways to optimize web fonts for better core web vitals.

1. Preloading Fonts

You want your fonts to be ready the moment the page starts loading.

So when the page is ready for the user, so is the font.

That’s called preloading.

Preloading Times In A Horizontal Bar Graph: Index.html Spans From 0Ms-280Ms, Main.css From 50Ms To 380 Ms And So On
Source

Preloading tells the browser, “Hey, this font is important. Please load it right away.”

Let’s say you’re using the popular Google font, Roboto.

Screenshot Of Google Fonts Example Using Roboto With Text In Roboto Font &Quot;Whereas Disregard And Contempt For Human Rights Have Resulted&Quot;
How To Avoid The Performance Pitfalls Of Web Fonts 57

You need to add a single attribute to your HTML code to preload the font: rel = “preload”

After this, the browser knows to prioritize downloading Roboto, so your text appears styled with the right font faster.

This reduces the time it takes for the largest text block (LCP) to render, so users see the final version of your site sooner.

2. Control Font Load Behavior With the Font-Display Property

However, preloading could increase the initial load time by a little since the fonts are given priority.

The font-display property lets you control how your text behaves while custom fonts are still loading.

This can help you avoid the dreaded Flash of Invisible Text (FOIT), where users see blank spaces, and the Flash of Unstyled Text (FOUT), where the page appears with fallback fonts for a second and immediately switches to custom fonts.

The font-display property has four ways to manage text behavior: block, swap, fallback, and optional.

Let’s look at the two that you’d need.

Plotted Line Charts Shwoing The Impact Of Font Display Values On Page Load Between Block, Swap, Fallback, And Optional
How To Avoid The Performance Pitfalls Of Web Fonts 58

font-display: swap — This option is the safest bet for most sites. It ensures text appears immediately with a fallback font and swaps to the custom font once it is ready.

@font-face {
  font-family: 'Roboto';
  src: url('https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Me5Q.ttf') format('truetype');
  font-display: swap;
}

Here, the fallback font (like Arial or another system font) will load instantly, keeping the page readable.

When Roboto is downloaded, it replaces the fallback font without leaving a blank space on the screen.

Screenshot &Quot;Font-Display:swap&Quot; With Text: This Is A Paragraph. This Is Heavier Text (In Bold). This Is Emphasized Text (In Italics). This Is Heavier And Emphasized Text (In Italics And Bold).
How To Avoid The Performance Pitfalls Of Web Fonts 59

Here’s a demo of what font-display swap behaves like in the real world.

font-display: optional — If you’re concerned about speed, this tells the browser to skip the custom font if it doesn’t load fast enough. This works when you don’t mind if the fallback stays in place.

@font-face {
  font-family: 'Roboto';
  src: url('https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Me5Q.ttf') format('truetype');
  font-display: optional;
}

This option makes sense when performance is more critical than design, making it perfect for a site that’s all about speed.

Here’s an example of what this looks like in the real world. You won’t notice the switch here since most fonts load quickly enough.

However, the optional argument is great in case your font server goes down or slow.

3. Subsetting Fonts

Most fonts come with hundreds, even thousands, of characters.

Chances are, you only need a small portion of those. Removing those is called font subsetting.

That’s right, you can remove unnecessary characters to reduce the size of the font file.

An Abstract Illustration Showing Font Subsetting, Where The Letter &Quot;A&Quot; Is Being Extracted And Separated From A Larger Font File
How To Avoid The Performance Pitfalls Of Web Fonts 60

Suppose your site only needs English characters.

A tool like FontTools can help you subset your font to only include the characters you’ll actually use.

This means all Unicode characters that aren’t necessary in the English language can be removed to save the file size.

DreamHost Glossary

Unicode

The Unicode Standard is an international encoding system. It assigns a unique number to every character in every language so the character can be displayed across devices, platforms, and languages.

Read More

This reduces the file size from, say, 80 KB to 30 KB.

Smaller files mean faster downloads, improving both LCP and CLS since the font loads quickly and doesn’t shift the layout.

Here’s an example of how you’d remove everything other than English characters using FontTools:

pyftsubset Roboto-Regular.ttf --unicodes=U+0020-007F

Now, your Roboto font only contains the basic Latin characters needed for English text, making it much faster to load.

If you prefer a GUI-based approach, you can also try font-squirrel. Once you upload a font file, you get quite a lot of customization options to add or remove

A Web Interface For Font Squirrel'S Webfont Generator Showing Font Conversion Options And Format Settings.
How To Avoid The Performance Pitfalls Of Web Fonts 61

4. Compressing Fonts

Modern font formats like WOFF2 offer compression that can reduce font size by up to 30% compared to older formats like TTF.

Using the most compressed version of your font can significantly reduce its impact on page load time.

For instance, here’s how you can ensure you’re using WOFF2:

@font-face {
  font-family: 'Roboto';
  src: url('roboto.woff2') format('woff2'),
       url('roboto.woff') format('woff');
  font-weight: 400;
}

This way, browsers that support WOFF2 will use it by default, reducing load times while still displaying a crisp, high-quality font.

However, if a browser can’t use WOFF2, it defaults to WOFF.

5. Base64 Encoding

This is another commonly used practice to optimize your web fonts.

However, you need to be cautious about when to use Base64-encoded fonts.

Base64 encoding is most useful for small fonts or icons.

If it gets overused though, you can bloat the CSS, increasing the page load time more than just using the font itself.

If you want to use Base64 encoding for an icon font, you’d first convert the font file to Base64 format. Here’s how it might look:

@font-face {
  font-family: 'CustomIcons';
  src: url('data:font/woff2;base64,d09GRgABAAAAAAn4ABAAAAAAB...') format('woff2');
  font-weight: normal;
  font-style: normal;
}

This method works well for small icon fonts you use frequently throughout the site.

The CSS file loads with the embedded font, eliminating an extra HTTP request.

However, avoid this for large body fonts, as it can slow down initial page rendering.

and @import have a significant difference in load performance.

The tag loads fonts asynchronously, meaning it doesn’t hold up the rest of your page from rendering, while @import is a bit slower.

Use whenever possible.

“For 90%+ of the cases you likely want the tag. As a rule of thumb, you want to avoid @import rules because they defer the loading of the included resource until the file is fetched.” Ilya Grigorik, Engineer and Technical Advisor to the CEO at Shopify

It loads fonts independently, allowing the rest of the page to load without waiting on the font file.

This is the preferred method for loading Google Fonts or similar external font services.

Placed in the section of your HTML, it ensures the font starts loading early without blocking other resources.

Avoid @import for critical fonts.

@import waits until the CSS file is fully loaded, which can increase load time and hurt LCP.

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');

Using @import for fonts only works for secondary or less critical fonts. As a practice, avoid it for anything on the first screen of content.

7. Reduce Visual Shifts/CLS With Font Matching and Size Adjust

Visual shifts — or cumulative layout shifts (CLS), as Google calls them— occur when the layout changes unexpectedly, often due to font swaps.

To minimize this effect, choose fallback fonts that closely resemble your custom font’s style and dimensions.

The CSS size-adjust property also lets you control the fallback font size, reducing visual shifts when the custom font loads.

If your custom font is Roboto and a fallback font, adjust its size to match Roboto, making the transition almost seamless.

@font-face {
  font-family: 'Roboto';
  src: url('roboto.woff2') format('woff2');
  font-display: swap;
  size-adjust: 100%;
}

Here, Roboto’s fallback (e.g., Arial) maintains consistent size, reducing any noticeable movement when Roboto fully loads.

Once you align the size and spacing of the fallback with your custom font, you ensure that when Roboto replaces Arial, the shift is minimal, keeping CLS low and improving the user experience.

8. Find the Right Place To Host Web Fonts

Self-hosting your fonts doesn’t always mean faster performance.

Many third-party options also perform well—and sometimes, they can even load faster.

The Web Almanac found that certain sites using third-party fonts rendered faster than those with self-hosted fonts.

Bar Chart Comparing Fcp And Lcp Load Times For Self-Hosted, External, And Combined Font Hosting Methods, Showing Combined Hosting Is Slowest.
How To Avoid The Performance Pitfalls Of Web Fonts 62

Ultimately, font performance depends less on hosting choice and more on three key factors:

  • Content Delivery Network (CDN): Ensures faster delivery by serving fonts from multiple locations worldwide.
  • HTTP/2: Boosts loading speed by handling multiple requests in parallel, reducing latency.
  • Web Caching Policy: Caches fonts efficiently, so they don’t need to be re-downloaded with each visit.

Instead of getting stuck on the hosting debate, focus on setting up these essentials to keep your fonts loading smoothly, no matter where they’re hosted.

How To Simplify Web Performance Optimization

If the techniques above feel too hands-on, a plugin like Jetpack can make it easy.

Marketing Landing Page Showing Jetpack'S Wordpress Optimization Features With Graphics Of Performance Metrics And Mobile Devices.
How To Avoid The Performance Pitfalls Of Web Fonts 63

Jetpack, developed by Automattic (the creators of WordPress), is an all-in-one solution built specifically for WordPress sites.

It combines essential features for security, performance, and marketing, all managed from one platform.

Even if you are non-technical, Jetpack can help improve site speed, strengthen security, and enhance the user experience. (No complex setups necessary!)

Create the Perfect Balance Between Beauty and Performance

Web fonts give your site a unique, beautiful look.

However, without the right tweaks, they can also slow it down and frustrate users.

While we’ve covered essential font optimization techniques, fine-tuning performance involves countless technical details.

And getting the best results can feel overwhelming.

That’s where DreamHost’s professional web development services come in.

We’ll make sure your site is beautiful and optimized for speed and user experience.

Let us handle the technicalities while you focus on building a site that truly stands out.

Pro Services – Development

You Dream It, We Code It

Tap into 20+ years of development expertise. Just let us know what you want for your site – we’ll take it from there.

Learn More


This page contains affiliate links. This means we may earn a commission if you purchase services through our link without any extra cost to you.

Ian is a Product Designer based in Los Angeles, California. He is responsible for driving brand and product design at DreamHost, developing and maintaining our internal design system, and writing frontend code when he can. In his free time, he enjoys walking his dog, learning history, and discovering new music online and irl. Connect with him on LinkedIn: https://www.linkedin.com/in/ianhernandez23/

Your Dream Website Is Just One Click Away

At Ericks Webs Design, we believe every business deserves a stunning online presence — without the stress. We offer flexible payment options, a friendly team that truly cares, and expert support every step of the way.

Whether you’re a small business owner, a church, or a growing brand, we’re here to bring your vision to life.

✨ Let’s build something amazing together.

— no pressure, just possibilities.

Latest News & Website Design Tips

Stay up-to-date with the latest insights, trends, and tips in business website design. Explore our newest articles to discover strategies that can help you elevate your online presence and grow your business.

Commercial Real Estate Website Design That Sells

Commercial Real Estate Website Design That Sells

Elevate your online presence with effective commercial real estate website design that captivates and converts visitors. At Ericks Web Design, we help you build an engaging site that showcases properties through high-quality images, user-friendly navigation, and mobile optimization. Incorporate strong calls-to-action and SEO strategies to ensure potential clients find you easily. Including client testimonials can build trust, while fresh content keeps your site relevant. We’re here to transform your vision into a compelling selling tool. Let’s elevate your online presence in South Texas!

Why You Should Use a Lead Magnet (and What to Offer)

Why You Should Use a Lead Magnet (and What to Offer)

In today’s digital landscape, using a lead magnet is essential for small businesses looking to attract new customers. A lead magnet is a valuable offer, such as an eBook or discount, provided in exchange for contact information. This strategy not only builds relationships and increases website traffic but also helps in segmenting the audience. For South Texas businesses, effective options include free guides, checklists, or webinars tailored to local needs. Implementing a lead magnet enhances engagement and grows your online presence. Start leveraging lead magnets today to drive customer connections and elevate your web design strategy.

Keyword: lead magnet

Church Websites Built for Growing Congregations

Church Websites Built for Growing Congregations

Summary:

Church leaders in South Texas and beyond often struggle with an outdated online presence, jeopardizing community connections. A well-designed church website is essential for growth, serving as a welcoming space to engage current and potential members. Key elements include user-friendly navigation, engaging visuals, and SEO optimization to enhance visibility, ensuring newcomers can find services easily. Consistent content updates and bilingual options further foster inclusivity. Ericks Web Design specializes in creating tailored websites that reflect each congregation’s heart and community spirit, making it easier to connect and grow.

Keyword: Church websites.

How to Track Website Visitors (And What to Do With That Data)

How to Track Website Visitors (And What to Do With That Data)

Tracking website visitors is crucial for small businesses in South Texas to enhance their online presence. By using tools like Google Analytics, you can gather data on unique visitors, page views, and demographics, enabling you to tailor your content and promotions effectively. Understanding these metrics helps refine your strategy and improve user experience, ultimately driving more inquiries and sales. Leverage visitor data to create targeted ads and continuously monitor your site’s performance for ongoing success.

Keyword: website visitors tracking.

Catering Websites That Tastefully Sell Your Services

Catering Websites That Tastefully Sell Your Services

Summary:

The article "Catering Websites That Tastefully Sell Your Services" emphasizes the importance of a strong online presence for small businesses in South Texas. It highlights that a well-designed website acts as a business card, showcasing a brand’s personality and engaging customers with relatable content. Quality visuals and effective SEO strategies are key to attracting visitors. The piece encourages business owners to maintain an inviting atmosphere online, ultimately creating a memorable experience. Ericks Web Design offers services to help businesses build stylish and effective websites, ensuring they thrive in the digital space.

Keyword: Catering Websites

Top Email Marketing Tools to Connect With Visitors

Top Email Marketing Tools to Connect With Visitors

Summary:

For South Texas business owners, effective email marketing is a key strategy to connect with visitors and boost sales. This article highlights top tools like Mailchimp, Constant Contact, SendinBlue, and HubSpot, each offering unique features tailored for local businesses. Email marketing ensures direct access to customers, cost-effectiveness, and personalization, making it a vital component of digital marketing. Invest in these tools to enhance engagement and strengthen customer relationships.

Keyword: Email marketing tools

Carpet Cleaning Websites That Look Spotless

Carpet Cleaning Websites That Look Spotless

Summary:

To enhance your carpet cleaning business’s online visibility, a polished website is essential. A clean, professional design with strong branding and mobile optimization fosters trust and attracts customers. SEO strategies, including proper keywords and quality content, are vital for effective engagement. Regular website maintenance ensures your online presence remains fresh and functional. By prioritizing these elements, you’ll transform your website into a standout asset, much like a freshly cleaned carpet. For assistance, Ericks Web Design offers tailored solutions for businesses in McAllen, TX, and beyond.

Keyword: Carpet Cleaning Website

Using Landing Pages to Increase Conversions

Using Landing Pages to Increase Conversions

Using Landing Pages to Increase Conversions

Landing pages are essential for small businesses in South Texas aiming to boost conversions. They are focused, standalone pages designed to turn visitors into leads by providing targeted messaging and a streamlined user experience. Key elements include compelling headlines, engaging visuals, persuasive calls-to-action, trust signals, and simplified forms. Effective landing pages can lead to significant growth, as demonstrated by local businesses in McAllen. For tailored landing page solutions, consider partnering with experts to enhance your online presence and drive results. Embrace the power of landing pages to unlock new opportunities for growth!

Keyword: Landing pages

Optometry Websites Designed to Convert New Patients

Optometry Websites Designed to Convert New Patients

The article highlights the importance of creating effective optometry websites that attract and convert new patients. It emphasizes the need for a clean design, mobile optimization, proper SEO strategies, easy booking systems, engaging content, and showcasing patient testimonials. A well-designed website not only enhances patient intake but also expands the reach beyond local markets. Ericks Webs Design specializes in crafting websites tailored for optometrists to help them succeed online.

Keyword: “optometry websites.”

How to Promote Your Website After Launch

How to Promote Your Website After Launch

After launching your website, promoting it effectively is essential for attracting customers and growing your business in South Texas. Begin by leveraging local SEO to ensure that your site ranks well for regional searches. Utilize social media to engage with your community and share valuable content. Collaborate with other local businesses for cross-promotion, and consider investing in targeted paid advertising. Lastly, keep your audience engaged through email marketing by building a subscriber list. By implementing these strategies, you’ll enhance your website’s visibility and drive traffic. Focus on local SEO to maximize your efforts.