I am having issues with google chrome not rendering svg with an img tag. This happens when refreshing the page and initial page load. I can get the image to show up by \"
I had a similar problem and the existing answers to this either weren't applicable, or worked but we couldn't use them for other reasons. So I had to figure out what Chrome disliked about our SVGs.
In our case in turned out to be that the id
attribute of the symbol
tag in the SVG file had a :
in it, which Chrome didn't like. Soon as I removed the :
it worked fine.
Bad:
Good: