Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font Awesome icons disappear after refresh in Chrome

Bootstrap version 3

Font Awesome version 3.2.1

I am having issues with bootstrap and font awesome on Chrome. When I originally load a page, the font awesome icons are displayed correctly. When I refresh the page, the icons disappear. **To clarify, the entire icon is missing, this is not the empty box issue that some others encounter.

I'm grasping at straws here, but I noticed there were differences in the order in which the files were retrieved between the original page load and the refresh.

When the page is refreshed, the font file is the last item to be retrieved, and it appears to be a cached version as well.

Finally, any icons that are located inside of a <div class="btn"> will be loaded when the mouse hovers over the div.

Any help would be much appreciated!

Initial page load Original page load

Original page load headers

Page refresh Page refresh

Page refresh headers

like image 320
ChandlerPelhams Avatar asked Feb 21 '14 18:02

ChandlerPelhams


People also ask

Why Font Awesome icons are not showing?

Are you using Font Awesome Free or Pro? - Some icons are only available in Font Awesome Pro. Double-check that the icon you want is in the version of Font Awesome you're referencing and using. Also, make sure you are using and referencing the right style prefix and supporting files to use Pro icons.

How do I show Font Awesome icons?

You can place Font Awesome icons just about anywhere using the CSS Prefix fa and the icon's name. Font Awesome is designed to be used with inline elements (we like the <i> tag for brevity, but using a <span> is more semantically correct). icon If you change the font-size of the icon's container, the icon gets bigger.


1 Answers

I guess you are on a Windows machine, right?

This is an old problem with Chrome. See this posting on CSS Tricks. The next to last post should be the answer to your question. Or in short: Use the PUA (Private Use Area) for encoding.

The Unicodes (PUA codes) for each icon are listed in the Font Awesome CSS file - see: Font Awesome uses the Unicode Private Use Area (PUA)... (around line 190).

like image 128
Netsurfer Avatar answered Oct 02 '22 19:10

Netsurfer