Re:Google Code Blog: Introducing the Google Font API & Googl...
by sosuke on Wednesday May 19, 2010 @04:26PM
(#1362239)
It is important to note as well that http://themes.googleusercontent.com/font?kit=J_eeEGgHN8Gk3Eu... doesn't return just the font but the font that works with the browser that requested it. In IE it gives the EOT font in Chrome it gives the TTF
Re:Google Code Blog: Introducing the Google Font API & Googl...
by silvestrov on Wednesday May 19, 2010 @06:44PM
(#1362629)
Another very important advantage is that the browser can cache the stylesheet and the font, and can reuse them across multiple websites.
So if your website uses a font that is used by another website which the user has already visited, the browser doesn't need to download the font again. It doesn't even need to check the modification date on Googles server.
As many fonts add ~100 KB to the download size for a page, this really makes a difference.
Re:Google Code Blog: Introducing the Google Font API & Googl...
by qjz on Wednesday May 19, 2010 @04:21PM
(#1362229)
I wish they'd serve everything from subdomains in google.com. I mean, seriously, why does Google keep registering new domains for projects (google<something>.com) when they could easily use <something>.google.com instead? What's wrong with fonts.google.com?
Re:Google Code Blog: Introducing the Google Font API & Googl...
by Hovertruck on Wednesday May 19, 2010 @04:41PM
(#1362274)
My guess is they don't want to send all the cookies stored on the google.com domain whenever someone loads a font.
Re:Google Code Blog: Introducing the Google Font API & Googl...
by ggrot on Wednesday May 19, 2010 @05:01PM
(#1362339)
Seems reasonable. It protects users too because they can't track the cookies across these domains even if they wanted to.
Re:Google Code Blog: Introducing the Google Font API & Googl...
by revicon on Wednesday May 19, 2010 @08:21PM
(#1362853)
Yahoo does this as well for the same cookie reason. Lots of stuff is hosted on yahoo.net that's considered potentially unsafe.
Re:Google Code Blog: Introducing the Google Font API & Googl...
by celoyd on Wednesday May 19, 2010 @04:26PM
(#1362238)
It says “The API will generate the necessary CSS specific to the user's browser so you can use the font on your page.” If you change your user-agent, you’ll see it change.
Re:Google Code Blog: Introducing the Google Font API & Googl...
by mikeryan on Wednesday May 19, 2010 @04:55PM
(#1362318)
I'm looking at a few other similar services which also include legal text in the CSS file, I wonder if this might be another reason.
Re:Google Code Blog: Introducing the Google Font API & Googl...
by pyre on Wednesday May 19, 2010 @04:25PM
(#1362236)
I believe that it's handling the browser differences server-side.
Now, what would be the benefit of calling:
which in turn serves the css that contains the real call to the font: So, why two trips, instead of just one?What I'd do is just call the font directly and teach developers to use @font-face
And shrink the url a bit:
Remember, once it gets widespread use it would be harder to change a single char