The current 5.5.0 all.js file is is 432kb.
Almost half of this (182kb) is the brands.js set, which I would wager a decent percentage of users don't use.
Many users could get by just fine with one of the Solid/Regular/Light packs. The regular pack and the fontawesome.js file for 5.5.0 total only 50kb, saving a substantial 382kb over all.js.
Can we add the option to only include the option sets you want? Sorry if this has been posted elsewhere, I searched and don't believe it has.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | option_individually_load_files-3013478-3.patch | 17.63 KB | daniel.moberly |
Comments
Comment #2
daniel.moberly commentedI think this is a good idea. Working on a patch.
Comment #3
truls1502Sounds a good idea. Will try and test once Daniel had made the patch 👍🏻
Comment #4
daniel.moberly commentedAttaching patch. This is a big one. By default I have the users loading all files. Files may be added or removed on the settings page under "Partial File Configuration"
Comment #5
daniel.moberly commentedComment #6
vood002 commentedI installed this patch today and it seems to be working perfectly. This is an elegant implementation, thanks for the great module!
Comment #7
truls1502It works great.
Comment #8
truls1502Do you, @Daniel.Moberly, mind to fix for #3015234: Add option to individually load Font Awesome files for D7 too?
Comment #10
daniel.moberly commentedComment #12
truls1502Unassign myself.