Once T36812 settles, let's make use of the minifier in ResourceLoaderImage.
Original report:
Just an idea after looking at gerrit change 103894:
Maybe it is possible to minify svgs on the fly via resourceloader to avoid removing of comments and newlines, which makes the SVGs hard to read or the diffs, when something changes there.