Reduce FontAwesome icon font file size

Reduce FontAwesome icon font file size

Chromaniac

Well-known member
i imagine 2.2 would be using a bunch of new icons. because of the new thread types, editor update and other changes. might have discard old ones.
 

Mike

XenForo developer
Staff member
Beyond that, there's no core_fa.less file any more. It's been replaced with a pre-compiled fa.css template, so changes would need to be applied to that. (Note that this also pre-minified.)

This change was primarily to speed up core CSS compilation (and significantly reduce the memory overhead of it).
 

Anatoliy

Well-known member
Beyond that, there's no core_fa.less file any more. It's been replaced with a pre-compiled fa.css template, so changes would need to be applied to that. (Note that this also pre-minified.)

This change was primarily to speed up core CSS compilation (and significantly reduce the memory overhead of it).
you saved my time, I was just going to apply this cure to 2.2. thanks.
 

jb-net

Active member
Is there an automated way to figure out what fa icons my site currently uses so that I don't remove them by accident?
 

gogo

Active member
Is there a way to temporarily remove/disable all FA icons in my forum so I can feel the speed difference with and without
FA?
 

gogo

Active member
Just created a directory named backup and have all font files moved into it. The difference is not obvious. Maybe I'll try again later.
 

briansol

Well-known member
Clear your cache so the files need to download from scratch. That first page hit us the worst for viewers.... All the js,css, images
 

Chromaniac

Well-known member
Even more noticeable on mobile networks. High speed wired broadband won't show that much difference. Check in incognito/privates browser mode.
 

Chromaniac

Well-known member
this might give an idea lol. i think the graph starts dipping around the same time when i moved to 2.2. i was running shrunk font files on 2.1. i am a bit confused about the instructions to follow for 2.2 so haven't dabbled yet.

WyNIGQM.jpeg
 

nrep

Well-known member
this might give an idea lol. i think the graph starts dipping around the same time when i moved to 2.2. i was running shrunk font files on 2.1. i am a bit confused about the instructions to follow for 2.2 so haven't dabbled yet.

Just checked my stats and a also big drop since upgrading to 2.2 in terms of core stats - reducing the size of these fonts made a big impact.
 

nrep

Well-known member
@Mike are you aware of any mechanism that I could run that would find any instances of fontawesome icon references? The pre-compiled setup_fa.less template lists every icon, but I was wondering if searching through all templates for "fa-" would be enough to catch all of the icons we need to recomplile the .woff2 for XF2.2. As you've got intimate knowledge of the software, do you think that might work?
 
Top