I feed all my svgs to svgomg before out using them on the web. It works wonders.