What is the best way to include Google Fonts?
-
Hi,
When it comes to Google fonts and GZIP/cache them, I am wondering what the best way is to include them in a website. I have tried 3 ways:
Option 1 – Include directly
Include the font by including a stylesheet in the head (using the direct link to the Google font for example https://fonts.googleapis.com/css?family=Lato:300,700)Option 2 – Include indirectly
Include the the font by including the contents of the Google font stylesheet in your own stylesheet to reduze the number of connectionsOption 3 – Include indirectly and serve from own server
Include the font by downloading it from the Google Font Directory, serve it from you own server and point to the font in your stylesheet.In my opinion option 3 is the best way because they can be GZIP’ed and cached this way.
What do you think is the best way to include Google fonts in a website?
Cheers
Rick
- The topic ‘What is the best way to include Google Fonts?’ is closed to new replies.