Font Display: Optimize Your Site on Google

Tutorial
3 min
Published on Mar 09, 2022
Updated on
Google Core Vitals audit text fonts results
Use AI to summarize this article
Key points

The CSS display mode of your web font has a direct impact on the loading time of your site and consequently, on your SEO ranking. So how do you choose and implement the best practice, recommended by Google, to optimize the loading time of your page?

How to manage this Google Core Vitals (SEO) error?

Have you already performed a Google Core Vitals audit using the Google Lighthouse tool and encountered this error?

"Ensure text remains visible during webfont load" error in a lighthouse audit

"Ensure text remains visible during webfont load"

In other words, Google recommends that you use a specific CSS function for the text displayed on your site. Why? To ensure that the text content of your site remains visible to users while the fonts are loading on your webpage. Admittedly just a few milliseconds, but both Google and your users are demanding.

To resolve this error, there is a very simple optimization. You need to add a CSS function to your web font. The function is:

  • font-display: SWAP;

What are the different web font display functions?

There are several default font-display styles when it comes to displaying fonts on a website:

  • font-display: auto;
  • font-display: block;
  • font-display: swap;
  • font-display: fallback;
  • font-display: optional;

To learn more about the role of each, click here. The Mozilla Developer site explains them very well.

The best (CSS) font-display to optimize site loading

Google is clear: its preferred display is SWAP. This allows for a "default" font to be used to ensure content readability on your site while the CSS style of your font (e.g., comfortaa) loads later.

Example of micro loading time for the font on our site 👇

example of font load swap on digidop.fr

This CSS function is easy to implement and will improve the performance of your website's pages.

How to change the font function on Webflow?

The native fonts of Webflow and the fonts downloaded from the Google Fonts section in the Webflow interface do not allow you to add the SWAP mode. However, there is a quick technique to access it:

Webflow enables you to adjust the CSS font-display feature for fonts imported from the "custom fonts" section.

  1. Upload a font
  2. Import the font into "custom fonts"
  3. Select Font Display: Swap
  4. Click on Upload Font Files
Custom fonts Comfortaa with display:swap in the Webflow interface
Font Display: swap

⚠️ If you already had a font affecting your elements, make sure to properly "reset" its CSS attributes to reassign your "new" font.

There you go, you now know how to improve the loading speed of your pages using a quickly manageable CSS attribute.

Florian Bodelot
Florian Bodelot
Co-founder

Suggested articles

Main entrance of VivaTech 2026 in Paris featuring the official 10th-anniversary event branding, Europe’s largest technology and innovation conference.
Events

Digidop at VivaTech: Two Days at the Heart of European Tech

Digidop at VivaTech: Two Days at the Heart of European Tech
Wide view of the 2036 by Yuri & Neil stage, bringing together more than 400 marketing leaders to discuss the future of the CMO role in the age of artificial intelligence.
Events
AI

Looking Back at Our Participation in 2036, Yuri & Neil’s Marketing Event for CMOs

Looking Back at Our Participation in 2036, Yuri & Neil’s Marketing Event for CMOs
Participants networking during flowConf 2026 in Belgrade, a European conference focused on the future of web, Webflow, and AI, inside a modern industrial venue featuring “Future of Web Unpacked” banners.
Events

The 2026 edition of flowConf perfectly reflects the turning point of the European Web(flow) ecosystem.

The 2026 edition of flowConf perfectly reflects the turning point of the European Web(flow) ecosystem.

Want to turn your website into your most valuable asset?

Contact us today