Scope the fontawesome.css to the icons we actually use
As we only use a limited amount of icons anymore but include automatically the CSS for all icons, it could be worth to make a one time special css in the repo instead of using the one from the gem.
The gem CSS is located at gems/font-awesome-rails-4.7.0.5/app/assets/stylesheets/font-awesome.css.erb
lets copy that one to the repo, remove all not used icons (or most probably the other way round by picking the ones we still use) and reference those in application.scss
. As soon as we are done then we can remove the CSS + Font.
The current CSS is 38KB and I expect we could bring it down to 5KB max? The only tricky part are the font-awesome references that are dynamic hashed assets.
Edited by Tim Zallmann