Reduce FontAwesome icon font file size

Reduce FontAwesome icon font file size

Compatible XF 2.x versions
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
321
First release
Last update
Rating
5.00 star(s) 2 ratings

Latest reviews

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