I'm using an icon font to display icons on a web page. The font is loading correctly through a css file referenced in HEAD. The file is located on an external asset server. Let's say
http://assets.example.com/css/fonts.css --> http://assets.example.com/css/fontfile.woff etc
I'm referencing these icons in both HTML and various javascript files (loaded at the bottom of the page).
<span class="icon icon-info"></span>
I'm seeing 404 errors in both Chrome and FF with the browser trying to load the font from the page location.
http://www.example.com/jobs/1/fontfile.woff
What seems to be happening is that during Javascript processing, the browser doesn't recognize that the font has already loaded or is supposed to be loaded from a different location. It subsequently tries to load the font file from the current location
I'm using Bootstrap and yui3, but that seems irrelevant.
Any ideas on how to fix this?