3 ms·
I recently embedded my WOFFs on my blog as data uris, specifically to eliminate some http requests. I have three fonts. My uncompressed CSS is 100k, but gzips t
by theandrewbailey 13y ago
I recently embedded my WOFFs on my blog as data uris, specifically to eliminate some http requests. I have three fonts. My uncompressed CSS is 100k, but gzips to 73k.
Then I read that IE doesn't like data uris larger than 32k, so I recompressed my fonts with zopfli, but one was still ~35k. I did more digging and discovered that the 32k limit is for IE8; IE9's limit is 4 gig, and everything is fine.
Some recent articles have seriously questioned the wisdom of doing this.
http://theandrewbailey.com/ http://theandrewbailey.com/
http://wizard.ae.krakow.pl/~jb/ttf2woff/ http://wizard.ae.krakow.pl/~jb/ttf2woff/
http://caniuse.com/datauri http://caniuse.com/datauri