Re:MDN (beta) is now built with React
by lousken on Tuesday July 16, 2019 @01:01PM
(#20451804)
When did inlining svg icons become a thing? I've always seen things like font awesome.
[ Parent
| on HN ]
Re:MDN (beta) is now built with React
by ricardobeat on Tuesday July 16, 2019 @01:27PM
(#20452060)
Inline SVG has several advantages over icon fonts, which were never meant to exist:
- immediate rendering
- multi-color icons without any stacking tricks
- flexible styling
- better aliasing, more consistent rendering
- can be animated
- easily load only assets used on the page vs a sheet of hundreds, most never used
- works well with rendering libraries like React, makes manipulating images very easy
- compresses well with gzip, no need for symbols
It’s becoming standard practice for good reasons.