Reduce FontAwesome icon font file size

Reduce FontAwesome icon font file size

Compatible XF 2.x versions
  1. 2.1
Visible branding
No
The default XenForo 2.1 theme includes the FontAwesome Pro icon collection. The icons are downloaded with the page as three separate .woff or .woff2 font files which include all 7,800+ FontAwesome icons, even though the XenForo theme uses only ~262 of these icons. This means that...
You do not have permission to view the full content of this resource. Log in or register now.
Author
DeltaHF
Views
1,377
First release
Last update
Rating
5.00 star(s) 4 ratings

Latest updates

  1. Instructions modified to create separate font files, additional template edits added

    The instructions have been updated to suggest users create their own separate -reduced versions...
  2. Added missing icons, typo fixed

    Added unlink, hdd, and fixed a typo affecting arrow-left. Python script's desiredGlyphNames...
  3. Added missing icons

    Added align-justify, arrows-alt, arrows-left, and exchange. Thank you @OperaManiac for the tip.

Latest reviews

Thanks, it really help in reducing file size by huge amount, i also reduced Material Design Icons of UiX theme from 250kb to 8k only. now my page load even more fast in a second.
This is amazing. Easy instructions and it just works. I had to add several icons not in the core list, but they only added 2kb! This is a must do!
The large WOFF2 files got me busy for a long time. Finally a solution. It takes a little fiddling but it works great!
Super helpful, thank you both for the time and effort to get this working. A feature request - how can we serve these new files from a CDN? I tried and failed due to CORS.
DeltaHF
DeltaHF
That's probably beyond the scope of this guide. CORS can be really tricky. Usually, it requires you to configure the correct response headers from your web server. Make sure the "application/font-woff2" and "Access-Control-Allow-Origin" HTTP headers are being sent with the .woff2 files.
Top