-
Notifications
You must be signed in to change notification settings - Fork 81
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
Minimize dependency on Font Awesome #223
Comments
There only about ten different icons, but some of them ( tree icons ) will be hard to replace. How about creating a separate mini-font from the FontAwesome. It will be 10 times smaller and will load much faster. Also, the font file will be loaded only when some icon was rendered on the page. Font will not delay initial UI rendering. The second font (PT-Sans) which is used for all text labels in the Flat skin will delay rendering of any text in the initial UI. It can be replaced with any standard font, but such replacement will result in less nice looking interface. |
Great idea! http://fontastic.me/ might help?
There's a way to optimize font loading explained at http://www.filamentgroup.com/lab/font-events.html:
|
In the meantime I found a far better way to include just a few icons: inlining SVGs. It's compatible with IE9+ and super simple:
Great article: SVG vs. icon fonts |
Hi, How can you use this technique instead of installing fortawesome:fontawesome for webix datatable sorting icon? Thank you |
Added in Webix. 6.0. |
I'm trying to decrease load time of Webix + dependencies.
Looks like Font Awesome would be a good candidate for optimization. What Font Awesome icons are used implicitly by Webix? If the user explicitly makes use of FA icons, then they should load Font Awesome; but otherwise, FA might be unnecessary.
So far, the only case in which Webix uses FA characters that I know of is to indicate table column sort direction:
Font Awesome is a pretty large dependency just for these two up/down characters. Would it be possible to replace that special up/down character with a Unicode character that comes with a standard font?
and
andor
)The text was updated successfully, but these errors were encountered: