Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question