• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

XF2 xF2 Add-on [Kirby] Font Awesome Manager 1.2.7

Status
Not open for further replies.

itsMe

*KillmeMories*
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
Joined
Jan 8, 2019
Messages
56,623
Solutions
2
Reputation
32
Reaction score
100,455
Points
2,313
Credits
32,750
‎6 Years of Service‎
 
76%
fam-style-properties.png


XenForo uses the icoon font Font Awesome Pro 5 which contains a few thousand icons of which XenForo does usually only use a few hundred.
But as all icons are included in the CSS and font files, browsers have to download the full font files and CSS which does cause a significant overhead in most cases.

By subsetting the font to include only those icons that are actually being used, the size of the font files and CSS can often be drastically reduced which does improve page loading time.
Typically, the size of the font files can be reduced by over 80%.

This Add-on does allow to automate the process of creating subsets as much as possible:

    It can automatically scan the database and PHP files for Font Awesome icon references
    It can monitor database entities (like Phrases, Templates, BB-Codes, etc.) for changes and adjust the subset accordingly
    It can perform subsetting using locally installed fonttools/pyftsubset or transfonter.org
    It does allow you to easily add icons that are not discovered automatically
    It does allow you to exclude icons that have been discovered automatically but are not actually being used (for example if the feature that uses them is not being used)
    It can exclude certain templates or files from being scanned (which can be useful if those reference icons without actually using them)
    It does offer various strategies to load subsets and CSS
    It does support AMPXF

If pyftsubset is not available, this Add-on does use
This link is hidden for visitors. Please Log in or register now.
to create the subsets, eg. it does make calls to this service during installation and normal operation.

Thanks to @Andro, @rdn, @Nirjonadda, @frm, @Ivancas, @Anatoliy, @briansol, @Masetrix, @duderuud and all others who helped in private beta testing.
This Add-on wouldn't be as usable as it is (well at least I think it is usable ;)) without your feedback!

fam-options.png


Code:
https://xenforo.com/community/resources/font-awesome-manager.8407
To see this hidden content, you must like this content.
 
Status
Not open for further replies.
Back
Top