Fontawesome always reloading icons

May 2024 ยท 1 minute read

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

ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobmluZ2yGeYGOn6anrJGssrS7zJ5kmqSnlsa0edGeo6iZlJ67qHnInKanqw%3D%3D