Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website Customizing Colors and Fonts Pick Fonts and Set Relative Units

Dave Lawlor
Dave Lawlor
2,732 Points

Using Google Fonts in a Website that is installed "locally".

Hi

Early days for me - I hope this isn't a dumb question, but.....

If I was running a website and hosting it internally what would happen to the elements on my site that are using Google fonts if I lost the external network? What would be displayed?

Thanks.

2 Answers

So in short the question is: What if the google font resource is not found ? It will just display text in the stock browser font. still you'd get an error. Alternatively you could cache or just download your resources. If it is a free font with a lets say WTFPL it'd be wise to download it and use fontface.

Dave Lawlor
Dave Lawlor
2,732 Points

Thanks Yorick

That's great.

You're welcome, still keep in mind when you store a font on your server each user will download it causing extra load on your server. When publishing it online your user has an internet connection anyways so i would recommend loading Google their servers. They've got server capacity enough.

Dave Lawlor
Dave Lawlor
2,732 Points

I re watched the video - I realize the explanation is there.