Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font awesome icons becomes invisible in IE after refresh

Tags:

font-awesome

I am facing the issue with IE browser.It is loading the icons for first time load. but if i refresh the page the icons are not visible. Can you please tell me how to fix this from server side? This is related to Font-awesome disappears after refresh for all ie browsers ie11,ie10,ie9 . but it does nt have the complete solution

like image 243
muthu Avatar asked Feb 12 '23 16:02

muthu


1 Answers

We had this same problem because we were storing the FA CSS file locally. The font @import's would fail on refreshes, probably because it does a different HTTP call than the one for the local file. We reverted to their CDN and it fixed the problem. If you downloaded the FA files and aren't pulling them in through a CDN, then change your <link> tag in your <head> to:

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

Once we did that FontAwesome was being served up on every refresh without problem.

like image 133
Charles Harris Avatar answered May 01 '23 23:05

Charles Harris