3 ms·
Unfortunately you cannot reuse the icons that way, which does end up being wasteful unless you use compression.
by grenoire 9y ago
Unfortunately you cannot reuse the icons that way, which does end up being wasteful unless you use compression.
- EvilTerran 9y agoI believe you can define a <symbol> in one inline SVG, then <use> it in another, so that'd be a way to achieve icon reuse. Not sure how good browser support is for that, though - there's probably quirks.
- thinkloop 9y agoYou can reuse inline icons with JS - for example if you made a react component of it.
- deleted 9y ago[deleted]
- freshyill 9y agoThat’s incorrect. You definitely can reuse them using symbol and defs/use.