Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I got a web site (ASP.Net web form hosted on IIS7) that is getting slow to load. If I remove all image of the loading time, the things that got the bigger part of time is the loading of the font file (.woff in Chrome).

I activated the gzip compression in my Web.config but the speed is still slow.

Is there anything else I could do to speed up the transfer of the font files?

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

Server the fonts from a different site (domain/virtualhost) setup specifically for static files. Serve the fonts from a CDN, or if is a common font, see if it already on a CDN, so that it might already be cached by the browser. Since WOFF is already compressed, enabling compression may not add anything.

share|improve this answer
add comment

In addition to the answer @Zoredache gave, which is right on the money, might I also recommend the Google Font API. If the font you are trying to use is available it is a great way to add performance without having to set up a server for hosting static files or going through the expense of a CDN. A cool feature they just added is the ability to only return the characters you need in the font file. So, if it's just a simple string you are printing such as "Header 1" it will only return those characters in the font file, thus making it much smaller.

More information can be found at the following link: http://code.google.com/apis/webfonts/

share|improve this answer
    
Thank for the information. But unfortunately for me the required font is not available on the Google Font API. –  Muffun Jun 2 '11 at 20:46
    
Aw, that's too bad. Well, something to keep in mind for future projects I guess. Good luck. –  bobert5064 Jun 2 '11 at 21:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.