I want to include some SVG images in my HTML file. I am using ReactJS
and including them by using <img>
tag.
<img src="path_to_svg"></img>
Now each of these images, as expected, are causing XHR network requests. I want to prevent XHR requests for performance and security concerns.
What is the best way to achieve this? Should I consider corverting SVG code to Base64, and include the CSS as background?