4 ms·
Google and Typekit released a javascript project called web font loader[1] that allows custom fallback logic. You can add custom code that loads self-hosted fon
by moonboots 14y ago
Google and Typekit released a javascript project called web font loader[1] that allows custom fallback logic. You can add custom code that loads self-hosted fonts if Google is timing out. To generate the fonts on your server, you can download the original fonts[2] and run them through FontSquirrel's Font-Face Generator[3]. This provides some of the optimization benefits that Ilya mentions in his blog post.
[1] https://github.com/typekit/webfontloader https://github.com/typekit/webfontloader
[2] http://code.google.com/p/googlefontdirectory/ http://code.google.com/p/googlefontdirectory/
[3] http://www.fontsquirrel.com/fontface/generator http://www.fontsquirrel.com/fontface/generator
- shimon_e 14y agoWow thanks! I'd recommend this as default practice.
- alexchamberlain 14y agoCould you not mirror the fonts from Google?
- shimon_e 14y agoNo as they need 30+ variants of the fonts to support everything right now and Google customizes them on the basis of user agent. Hopefully in the future it will be a lot more simpler.