A
A
Anton2014-11-30 18:10:12
css
Anton, 2014-11-30 18:10:12

How to save a font from Google Fonts to your server?

In my styles at the beginning I prescribe:

import url("//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700");

The font loads, but this significantly affects the overall page load. Sometimes the page loads completely, and the text is not displayed until the font is loaded.
Interested in whether it is possible to somehow host this font on your server? If so, how? And how to connect?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Savostin, 2014-11-30
@savostin

It's not a fact that your server will load faster than Google.

T
tennalian, 2014-12-01
@tennalian

Recently posted a video about speeding up performance. In particular, the loading of the font went like this: if the user is on the site for the first time and has a new browser, then the font is written to him in localstorage and is already displayed on subsequent downloads. If he has an old browser, then he's not lucky)))
In general, try to write font-face something like 'Google font', Arial,sans-serif. In theory, it should help a little.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question