I’d like to optimize the download of my resources by reducing the number of SVGs, and a simple solution is to insert multiple SVGs in a single bigger SVG used like a library: I just need monocromatic (sometimes compounded) shapes to use as masks.
Is this possible? If it is we can start talking about extraction, layers, pivots etc.
You can group the content wrapped inside the
<svg> tags into individual
elements and ultimately bundle all those groups into a single file.
Afterwards you can use the inLayer parameter of
SVG.render() to reference a
So I can reference groups by assigning an id, right?
Yes exactly GiG - sorry, I forgot to mention the ID.
Thank you ob! I’ll give it a try as soon as I have new assets to elaborate.