Trys Mudford
I couldn’t resist… @adactio 😄 codepen.io/trys/project/e…adactio.com/links/15059 cc: @scottjehl
Woah! This is one smart hack!
Scott has figured out a way to get all the benefits of pointing to an external SVG file …that then gets embedded. This means you can get all the styling and scripting benefits that only apply to embedded SVGs (like using fill
).
The fallback is very graceful indeed: you still get the SVG (just not embedded).
Now imagine using this technique for chunks of HTML too …transclusion, baby!
I couldn’t resist… @adactio 😄 codepen.io/trys/project/e…adactio.com/links/15059 cc: @scottjehl