Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the role of all.js and other JS file in font awesome package?

I have downloaded the font awesome package version 5.7.2 but without using the js files (inside js folder), I haven't confronted any problem and fonts working well. Here there is a help about js files but only wrote this:

SVG with JavaScript

But I don't understand what's the meaning.

So what is the role of this js files and are necessary to add in our project?

like image 934
Beny Sad Avatar asked Oct 27 '25 10:10

Beny Sad


1 Answers

All.js must be referenced if you want to render svg icons instead of webfont icons, since the svg icons are rendered using javascript. If you go with webfont icons, simply reference All.css and skip the js files.

If you need information to base your decision on, you can read up on the subject here: Icon Fonts vs SVGs

like image 83
user2109099 Avatar answered Oct 28 '25 23:10

user2109099