admin管理员组文章数量:1336340
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
1 Answer
Reset to default 10All.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
本文标签: javascriptWhat is the role of alljs and other JS file in font awesome packageStack Overflow
版权声明:本文标题:javascript - What is the role of all.js and other JS file in font awesome package? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742368859a2461821.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论