while the non brand icons surely make sense in the fontawesome.css because they are in the 3 main variants of FA, the brands only exist in FA Brands, which would make it more fitting to split off the brand icons and have them available in brands.css only so that is no brands are used, we dont need to waste space and bandwidth.
considering brands already was moved into a seperate font file I would think that going all the way would be best here.
Hi!
Could you please clarify this request and follow our contributing guidelines for feature requests?
using only certain styles without wasting a lot of space/bandwidth
CSS/SCSS
complete the split of FA-brands from the main icons
they waste less traffic (which obviously becomes a big point on bigger sites)
I would think 3. it's not really important but defintiely useful in the future.
some actual explanation.
when you dont want to use certain styles you need to use fontawesome.min.css plus the files of those styles so if you only need FA-Regular you need fontawesome.min.css and regular.min.css. the point though is that fontawesome.css contains the references to ALL the brand icons, which amounts to about 14KB, or about 21% of the 66,2KB fontawesome.min.css, which obviously means big savings, if the brands were split apart and are not used.
I think I've got it.
So you basically want that css rules related to brand icons, let's say
.fa-twitter:before {
content: "\f099"; }
/* ... */
.fa-viadeo:before {
content: "\f2a9"; }
should be moved from font-awesome.css to brands.css
font-awesome.all.css should be unaffected by this change.
Am I right?
precisely.
I would love to ultimately import, say, all-nobrands.min.css, that only includes the CSS for icons in the solid, regular, and light fonts.
(I guess that wouldn't really be all...)
To baby step this item, would it be acceptable to resort the _icons.scss file to have the solid, regular, and light icons at the top, and the brands at the bottom? Once that's done, perhaps then the brands can be split off into _icons-brands.scss.
Most helpful comment
I think I've got it.
So you basically want that css rules related to brand icons, let's say
should be moved from
font-awesome.csstobrands.cssfont-awesome.all.cssshould be unaffected by this change.Am I right?