Inline SVG vs SVG File Performance
Asked 07 September, 2021
Viewed 2.9K times
  • 61
Votes

I'm currently building a website aimed at modern browsers and mobile devices. In terms of performance, is it better to inline SVG's directly inside the HTML using <svg> or is it better to use <img> and/or background-image instead. I run gzip on the server to further compress my content and prefer not to rely on Javascript.

5 Answer