PolymerElements / iron-icons

A set of icons for use with iron-icon
https://www.webcomponents.org/element/PolymerElements/iron-icons
105 stars 61 forks source link

Minify? #43

Closed indolering closed 8 years ago

indolering commented 8 years ago

Has anyone tried running the icons sets through an SVG minifier? It's more difficult to run these things through a minifier after-the-fact because everything is wrapped up in HTML.

I tried a few SVG minifiers by copying and pasting the <svg> but they all chocked on the "xlinks" (Error in parsing: Unbound namespace prefix: "xlink"). One claimed a 30% reduction in size without any loss in precision, but it looked the some of the markup was missing.

ebidel commented 8 years ago

The xlinks are a known issue from the imported material design icons. We're working on it in https://github.com/PolymerElements/iron-icons/issues/28#issuecomment-149372961.

notwaldorf commented 8 years ago

I think the xlinks should be gone now. Closing, but please re-open this issue if it still occurs.