简体   繁体   中英

Font Awesome Blinking in Google Chrome

I am using FontAwesome as a few of my icons on my website:

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

But, in chrome when I refresh the page it takes 0.5-ish second for Font Awesome to load causing the page to shift and then move back when the font is loaded.

I have tried it with Edge and Firefox and they load instantly, why is this?

Try putting it directly on your hosting server and load it from there. Loading assets from CDNs sometimes causes issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM