Streaming live at 10am (PST)

Fallback fonts for Google Fonts

Is there a way to set fallback fonts for Google fonts, so for example if someone from mainland China accesses the site and Google Fonts are unreachable?

Download the Google fonts you are using then upload them to your project. After they are uploaded you can set fallbacks. The uploaded fonts load from the WF CDN.

You may need to set the font-family if missing in the designer. Should work.

Thanks, will try. Any idea if the jquery etc would work in Mainland China?

I believe that’s a no on jQuery.

@webdev what about letting the font on Google and overriding the declaration?

For example, I add a google font, the declaration in Webflow is set to the body:

body {
  font-family: 'Maven Pro', sans-serif;

Then add that custom code that will address the fallback:

body {
  font-family: 'Maven Pro', fallback-font-name!important;

We were trying to avoid Google fonts in this case (loading them from Google). If you do it this way you get a big score improvement in lighthouse as well.

Gotcha thanks.

@webdev Slow process but it seems to be working. Any idea if there’s a way to minimise the jump to the manually installed font when the page loads? I’ve got it set to swap at the moment.