I
I
indeveloping2020-01-25 17:22:43
Sprites
indeveloping, 2020-01-25 17:22:43

Does it make sense to use svg - sprite for multiple icons?

The project has 20 icons in svg format. Of these, 6 icons are reused in different design layout blocks (their color and size change). Does it make sense to add only these 6 icons to the svg sprite, and insert them through <use>HTML, and insert all the rest as usual through css pseudo-elements. Or, for that matter, add all the icons to svg, and insert everything inline? I'm just not a fan of clogging the markup with additional tags.
Of course, in terms of performance, it would be better to have one svg sprite that would be downloaded from the server than an svg sprite + 14 icons. What would you do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-01-25
@indeveloping

one sprite. and not inline, but a separate connection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question