I'm trying to make my FontAwesome 6 installation more lightweight by importing the few individual icons I'm using instead of a whole style, via my web app's npm
build process. The documentation seems to say that the way to do this is by installing @fortawesome/fontawesome-svg-core
(and then presumably an icon pack like @fortawesome/free-solid-svg-icons
, although not explicitly mentioned in the docs).
Using FontAwesome in this way disables by default the following capabilities of the standard FontAwesome configuration:
Automatically replaces
<i>
tags with<svg>
Watches the page for icon changes and additions
Going deeper into this, another section of the docs shows that the specific options disabled are autoReplaceSvg
and observeMutations
.
What are the reason(s) that configuring FontAwesome in this way disables these options by default, and is there any disadvantage to re-enabling them, either performance or otherwise?