4 ms·
So the distinction is inlining SVGs vs referring to them like you would a png with an img src=filepath.svg|png in your HTML. It's handy to just treat them as y
by michaelbuckbee 9y ago
So the distinction is inlining SVGs vs referring to them like you would a png with an img src=filepath.svg|png in your HTML.
It's handy to just treat them as you would images, but you lose some flexibility wrt being able to manipulate them via CSS b/c the browser now "thinks" of them like an image.
This SO post has a clever workaround (with I'm sure more caveats wrt performance, etc) that will auto-inline your svgs that you need to manipulate so you can get a best of both worlds type situation going.
https://stackoverflow.com/questions/24933430/img-src-svg-changing-the-fill-color https://stackoverflow.com/questions/24933430/img-src-svg-cha...