3 ms·
Looks like the suggested solution is to use https://googlefonts.3perf.com/ https://googlefonts.3perf.com/ - which seems to rewrite the link tag to a script that
by sudhirj 8y ago
Looks like the suggested solution is to use https://googlefonts.3perf.com/ https://googlefonts.3perf.com/ - which seems to rewrite the link tag to a script that does some DNS prefetching and forces FOUT to get a faster load time. Seems like too much of a stopgap.
If you really want to fully control the font experience, download the font package and CSS from https://google-webfonts-helper.herokuapp.com/ https://google-webfonts-helper.herokuapp.com/ and host them yourself, on the same CDN as your JS and CSS. That way they'll load in parallel with your site's other assets and you have full control over all cache control headers as well.
- LoSboccacc 8y ago> they'll load in parallel with your site's you still have to wait until the css declaration is fetched and parsed, so don't forget a Link: prefetch header on the response (or http push, but a prefetch in the http response header is easier to implement)