Web Fonts Performance: Making Pretty, Fast
igvita.com
igvita.com
Was wondering if anyone has a better solution. Or if anyone from Google is reading this, could they place web fonts on a different domain/IP and pray that global censors don't list it?
Kinda nice to be able use cached versions of the fonts.
I only use China as an example. I have had problems with Google web fonts in other country and on bad connections.
edit: watching the video it sounds like by hosting locally I am not taking advantage of the different versions served to different operating systems.
[1] https://github.com/typekit/webfontloader [2] http://code.google.com/p/googlefontdirectory/ [3] http://www.fontsquirrel.com/fontface/generator
Hopefully in the future it will be a lot more simpler.
I'm reading your blog and wow it is very useful. Guess you are the guy to look into such issue.
This css file stops the parser till it is loaded and when connectivity to Google is an issue it hangs the loading of sites. See http://www.igvita.com/2012/06/14/debunking-responsive-css-pe...
Very small performance suggestion: minify the initial css!
Learn the style of some of the more prominent coders in a particular community or sub-community, whatever that may be.
Common resources distributed to browser caches everywhere is an attractive proposition but you're also giving Google a lot of data you might not want.
I'd be sure to keep local backups of every font and library you point to just in case something breaks, though.
<link rel="stylesheet" href="
http://fonts.googleapis.com/css?family=Droid%20Serif
&text=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.,
" />
...sends Chrome back a minuscule 8.5K worth of font. Glorious!Are we putting up with a worse user experience to gratify some self-absorbed designers? Is this all about letting them properly execute their "grand vision"?
The valid reasons I could see for a downvote for you are:
* asking a question that doesn't further the use of web fonts for their own end --- which seems to be the focus of the article
* calling designers "self-absorbed" and implying that novel fonts/etc creates worse user experience.
The mainstream browser devs have a clear remit to faithfully implement specs as standardised, and to support new and upcoming features as best they can. Mozilla in particular has a vision of just about everything moving to the web, so they're not going to do anything to limit the platform. Things like user preferences, browser extensions and bookmarklets are another field altogether, though, and users should make the web work to their liking as long as they're legally and technically able to.
Now the device might be connected to a fast WiFi network, or it might be connected via GRPS or EDGE.
The later case makes the user experience painful if someone has to wait for the fonts before they can see the content.
If the font is packaged as a dataURI in CSS then browsers wait for the CSS to be downloaded before rendering the page to prevent FOUC
Not sure if I understood that correctly... do we make the decision depending on the platform, or do we remove the hinting data for all platforms just to improve the compression?
[Google fonts] 43ms -> [------>] DNS 120ms -> [-------] [----->] Get Css 150ms -> [----------------] [---------->] Get-rel woff font
Proof: http://fonts.googleapis.com/css?family=Skranji --> http://themes.googleusercontent.com/static/fonts/skranji/v1/...
Use font squire and convert to base64_font -> better faster stronger
I am too, but let's face facts, it's not a normal thing to do.
Or is this not even worth considering?
I don't think there is any way to implement an actual OTP with a font, but you could use the font as a code book, where each character in the cipher text goes to a random unique code point, with the font duplicating each character many times.
Perhaps of some use to those annoying coupon code sites that go to great lengths to prevent copying of the coupon code in order to funnel users through their affiliate link. [Edit: To be an inconvenience to scrapers, you'd want to generate a random font per session.]