WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > Browser Compatibility > [SOLVED] @font-face font not loading in some IE 9 browsers.

Reply
  Thread Tools Display Modes
Old 4th September 12, 07:32 AM   #1
Gorgalore
WLC Member
 
Join Date: Dec 2009
Posts: 6
Default @font-face font not loading in some IE 9 browsers.

I am at a complete loss here.

I have a webpage that utilizes a custom font through @font-face. The font loads well and everything looks great in all browsers. I tested the site in Firefox, Chrome, and all major versions of IE. Looked great - no problems.

That is, until one of the clients showed that the font wasn't loading on his end. On a mirrored staging website, it loads fine for him.

So I assumed his browser had cached an old CSS file, but after doing a full refresh in IE 9 (CTRL+F5), and even deleting the Temporary Internet Files, it still doesn't load the font. Tonight I got an email that says he looked at the site on another computer in his household, and the font was messed up there as well.

Is there some reason why the browsers on the computers in his household wouldn't load the font after all this? Could the browser be having cache issues? It's frustrating.

The webpage in question is: http://cleanedge.com/clean-tech-nation
Gorgalore is offline   Reply With Quote
Old 4th September 12, 09:24 PM   #2
Gorgalore
WLC Member
 
Join Date: Dec 2009
Posts: 6
Default Re: @font-face font not loading in some IE 9 browsers.

Well, I figured out the solution to this issue. Turns out the site I was working on wasn't using canonized URLs.

Apparently, if your site is http://www.example.com, but your fonts are being loaded from http://example.com, you'll run into this issue.

Forcing the site to use only www (or to not use any subdomain) will fix this issue, and also resolves a troubling SEO issue as well (URLs should be canonized to prevent duplicate content issue).

The .htaccess was modified to force this change like so:

RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

(where example.com is your domain).

So, no help needed here, but thought I'd come back to post my solution. Maybe it helps someone else someday.
Gorgalore is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:35 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.