7 ms·
I'm curious - why would you want to host these yourself? Don't your users then lose the benefit of caching (e.g. if they also visit other sites which use the s
by rahimnathwani 12y ago
I'm curious - why would you want to host these yourself? Don't your users then lose the benefit of caching (e.g. if they also visit other sites which use the same fonts).
- Argorak 12y agoNo tracking, easier development when without internet, less external dependencies. You can, for example, use Google with a local fallback, for better reliability. (their CDN will fail at some time)
- huhtenberg 12y agoPrimarily to respect the privacy of your site's visitors. It also removes a dependency on a 3rd party source.
- zhte415 12y agoI am an edge case, but one where big CDNs are blocked, especially Google. Where the cache doesn't work, often nor do the entire pages they're supposed to serve; this does not apply only to fonts.
- jianzong 12y agoIt is especially useful in China. Since google is blocked, we can not use google font apis as well.
- therealwill 12y agoOn my company's internal intranet site I try to self host everything because our company internet connection is very unreliable.
- edent 12y agoThere is a small benefit when cacheing fairly small font files. And that's only if the sites your user visits have the same fonts as you. If you're using anything outside of the, say, top 20 most popular fonts - users aren't going to get any benefit from the caching.
- jacquesm 12y agoA few weeks ago suddenly a bunch of fonts changed messing up the layout of a site of a customer. I've also seen periodic slowdowns because the fonts would not load or load very slowly. In general keeping the number of dependencies down is a good thing to do.
- mutagen 12y agoI suspect the caching benefit is minimal, the vast majority of visitors won't have the fonts in cache. I'm basing my suspicion off the research done into jQuery cache hit success rates at http://www.stevesouders.com/blog/2013/03/18/http-archive-jquery/ http://www.stevesouders.com/blog/2013/03/18/http-archive-jqu... Web performance is complicated though and all the pros and cons interact in non-intuitive ways. A comparison of self-hosted, inexpensive CDN hosted, and original Google hosted may provide some performance surprises.
- markdown 12y agoIt certainly isn't worth the extra DNS roundtrips, especially on 3G and lower connections.