3 ms·
1kb is a lot for a simple svg icon. That said, if you have a single page app already, you can render as many icons as you want, since you’ll only download them
by Aeolun 6y ago
1kb is a lot for a simple svg icon.
That said, if you have a single page app already, you can render as many icons as you want, since you’ll only download them once anyway.
- kps 6y agoBut if you want 5 icons, 5K of SVG beats 55K of WOFF.
- tobyhinloopen 6y agoI wonder how React copes with a whole bunch of inline SVGs. Seems expensive
- RobertKerans 6y agoCopes totally fine and it's trivial to memoise them anyway.