A local solution to include Font Awesome 5 on your website: increase loading speed & work without an Internet connection.
Do more, install less. This project gives you the strict minimum that you need to quickly start using the 1588 icons of Font Awesome 5.
Woff font format is supported by every modern browser: https://caniuse.com/#search=woff, and Font Awesome works fine with only these files.
-
Copy the entire 'fa' folder into your project directory
-
Link it inside your
<head>
by adding this:<link rel="stylesheet" href="fa/all.min.css">
-
And voilà! You are ready to go!
Exemple: <span class="fas fa-search">Search</span>
The 'fa' prefix has been deprecated in version 5. The new default is the 'fas' for solid style, 'fab' for brands, 'far' for regular style, etc.
Find all the available icons here: https://fontawesome.com/icons?d=gallery