Skip to content

Commit

Permalink
[docs] Font vs SVG. Which approach to use? (#12466)
Browse files Browse the repository at this point in the history
* Update icons.md

* all good for me
  • Loading branch information
PolGuixe authored and oliviertassinari committed Aug 11, 2018
1 parent 22ac668 commit 6bf17dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/pages/style/icons/icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,10 @@ Optionally, you can set the icon color using one of the theme color properties:
### [Font Awesome](https://fontawesome.com/icons)

{{"demo": "pages/style/icons/FontAwesome.js", "hideEditButton": true}}

## Font vs SVG. Which approach to use?

Both approaches work fine, however, there are some subtle differences, especially in terms of performance and rendering quality.
Whenever possible SVG is preferred as it allows code splitting, supports more icons, renders faster and better.

For more details, you can check out [why GiHub migrated](https://blog.github.com/2016-02-22-delivering-octicons-with-svg/) from font icons to SVG icons.

0 comments on commit 6bf17dc

Please sign in to comment.