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

I have downloaded the font awesome package version 5.7.2 but without using the js files (inside js fold

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?

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?

Share Improve this question edited Mar 3, 2019 at 8:54 Benjamin Shakeri asked Mar 3, 2019 at 8:40 Benjamin ShakeriBenjamin Shakeri 3154 silver badges14 bronze badges 1
  • It's not necessary to add the js files to your project. The fontawesome website mentions this: Fewer patibility concerns because Font Awesome doesn't require JavaScript. – Bob Commented Mar 3, 2019 at 9:02
Add a ment  | 

1 Answer 1

Reset to default 10

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742368860a4430847.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信