Tyler Sticka digs in right here in the absolute best manner: by making a check web page and actually measuring efficiency. Possibly 1,000 icons is a little bit bit of an edge case, however hey, 250 rows of information with 4 icons in every will get you there. Tyler covers the nuances rigorously within the submit. The completely different methods examined: inline <svg>, same-document sprite <image>s, external-document sprite <image>s, <img> with an exterior supply, <img> with a knowledge URL, <img> with a filter, <div> with a background-image of an exterior supply, <div> with a background-image of a knowledge URL, and a <div> with a masks. Phew! That’s so much — and they’re all helpful methods in their very own proper.
Which method gained? Inline <svg>, except the SVGs are quite complicated, then <img> is best. That’s what I might have put my cash on. I’ve been on that practice for some time now.
To Shared Hyperlink — Permalink on CSS-Tips
The submit Which SVG method performs greatest for manner too many icons? appeared first on CSS-Tips. You possibly can assist CSS-Tips by being an MVP Supporter.
Subscribe to MarketingSolution.
Receive web development discounts & web design tutorials.
Now! Lets GROW Together!