-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use only the used Font Awesome icons. #5530
Conversation
src: url('../fonts/FontAwesome.eot?9h6hxj#iefix') format('embedded-opentype'), | ||
url('../fonts/FontAwesome.ttf?9h6hxj') format('truetype'), | ||
url('../fonts/FontAwesome.woff?9h6hxj') format('woff'), | ||
url('../fonts/FontAwesome.svg?9h6hxj#FontAwesome') format('svg'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WOFF is supported by 92% of browsers. What users are you targeting with all these new files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest that you read about the bulletproof fontface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. And you need to understand I don't make this by hand. This is how it was, this is how it was generated.
You want something else, make a new issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought SVG icons were the way to go now. :/
Again guys that's a different issue. I simply made this pull request to On Nov 3, 2016 01:09, "Frank Taillandier" notifications@github.com wrote:
|
@XhmikosR I hear you, thanks for pointing that this could be improved, wasn''t aware of this before your PR. |
@XhmikosR Reducing file size is certainly a good thing, and I am all 👍 on that. The fact remains, however, that this PR is adding three additional font formats to the CSS, and that is something that cannot be done without good reason. I'm not saying it mustn't be done; I’' only saying that the motivation is unclear to me. |
@pathawks: where on earth do you see this PR is adding 3 new formats? Please don't spread BS. |
And seriously, I have no interest on discussing this except for the points I make on my OP. @parkr: please have a look and cmerge or close. |
@XhmikosR Previously I am not trying to be difficult, only trying to understand the implications of this PR. |
No it does not have only eot. Scroll to the right. |
That’s what I was missing! So sorry for the confusion. |
Yeah, that is my whole point of asking if IE < 9 is supported ;) If not, I could skip .eot. |
If we want to use another icon, we have to regenerate this, right? How do you feel about the trade-off between saving KB and adding development time? Not sure how frequently we use new icons.
I don't believe IE < 9 is supported, no. If it doesn't add any bandwidth to the request for IE > 9, Safari, Firefox, and Chrome, then I'd be fine leaving it in as it sounds like we had .eot before this PR.
What is this JSON file? Can you paste in a gist and paste the link in a reply here? How does IcoMoon play in? Maybe we need documentation in the CSS about how to updated FontAwesome icons – I have no idea what IcoMoon is and how to use it. |
The json file is what you feed to the app to generate the font without Generally this is a fine solution IMO. JUST LOAD THE JSON file, choose the On Nov 3, 2016 18:25, "Parker Moore" notifications@github.com wrote:
|
Saving 50kb is not the right measurement here IMHO. Since this PR is intended to address performance issues, I just ran a test on webpagetest of the current loading on mobile. Chrome loads woff2 format by default as all other modern browsers do except IE. @XhmikosR have you ran some tests that shows that rendering is faster with this PR? |
Of course it's faster. And in the worst case it simply saves 59 kb of crap On Nov 9, 2016 02:53, "Frank Taillandier" notifications@github.com wrote:
|
My point here is that it seems to be more important to keep woff2 format for a majority of browsers, and that this will assure browsers download the lighter format. |
Your point is moot. It's not lighter. On Nov 9, 2016 02:56, "Frank Taillandier" notifications@github.com wrote:
|
Thanks for the PR @XhmikosR. I'd be happy to accept it if you are willing to write a quick README or comment in the generated file which explains how to modify the file. If there is configuration required, then let's commit that here (or put it in the README) as well so that isn't lost for future folks. |
@parkr: where do you want me to place the info? I can upload the json file in the fonts folder or do you have something else in mind? |
JSON file in the fonts folder would work, or make a README with instructions. I don't even know how to update this! A README with instructions would be lovely. |
@parkr: can you check if now everything is as you want? |
The font is generated with https://icomoon.io/app/. This saves ~50KB.
AppVeyor failed because the |
@jekyllbot: merge +site |
Thanks for sticking with this, @XhmikosR! Hooray for saving bandwidth and reducing page size. 👏 |
The font is generated with https://icomoon.io/app/.
This saves ~50KB.
A couple of questions: