Fontawesome Always Reloading Icons

I upgraded from Fontawesome 3 to Fontawesome 5. Now I got several problems. If I am just linking the font-awesome.min.css in the head, the icons are not loading. I just see squares. If I link the all.css and tha all.js in the head, I works. So the icons are shown correctly. But everytime, I am clicking any Button and the page is realoding, it takes around half a second to reload the icons. In the previous Version it worked without the js and the icons weren't reloading at all. I am not sure why it is behaving like this. Maybe because all the <i ...> are converted into svg?

Do you have any hints what I can do?

1 Answer

The class names changed.

In FontAwesome 3:

<i class="icon-thumbs-up"></i>

In FontAwesome 5:

<i class="fas fa-thumbs-up"></i>

You should look them up here and change them manually.

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest