Source SVGs may contain extra white space and comments which are unnecessary data transfer for thumbnail usage. Consider minifying and serving those.
|Open||None||T44725 Multimedia file format support (tracking)|
|Open||None||T138665 Support SVG interactivity and animation in media-viewer|
|Open||None||T5593 [Epic] SVG client side rendering|
|Open||None||T134415 Provide tools for contributors to optimize SVG files|
|Open||None||T134490 Create minified SVG output in thumbnail space to serve for <img>s|
While doing this minification, it might be necessary remove languages different from the content language of the article the SVG is used in (i.e. the content language) from [[ https://commons.wikimedia.org/wiki/Help:Translation_tutorial#Using_the_same_file | SVGs containing translations in <switch> elements ]]. Otherwise the browser might decide about which language is best suited resulting in undesired behaviour for visitors of e.g. public libraries? [Not extensively tested yet ... but the lang attribute on the HTML element appears to be ignored in Firefox]