Which SVG method performs greatest for manner too many icons?

No Comments

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 HyperlinkPermalink 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.

    About Marketing Solution Australia

    We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.

    Request a free quote

    We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.

    Subscribe to our newsletter!

    More from our blog

    See all posts

    Leave a Comment