Better storing and loading of svg images #4

Closed
opened 2019-06-02 13:22:55 +00:00 by KevinMidboe · 1 comment
KevinMidboe commented 2019-06-02 13:22:55 +00:00 (Migrated from github.com)

Today all svg icons are stored as symbols within a large svg file in index.html. The symbols are injected into a svg using xlink:href on the id of the symbol.

Today all svg icons are stored as symbols within a large svg file in index.html. The symbols are injected into a svg using xlink:href on the id of the symbol.
KevinMidboe commented 2019-06-02 13:25:12 +00:00 (Migrated from github.com)

Could create a component that injects symbols from an assets file that only contains the symbol xml. This would make it a bit more dynamic as they don't all need to be defined and loaded during launch.
But would loose the preview or drag-and-drop as there not stored as svg files.

Could create a component that injects symbols from an assets file that only contains the symbol xml. This would make it a bit more dynamic as they don't all need to be defined and loaded during launch. But would loose the preview or drag-and-drop as there not stored as svg files.
Sign in to join this conversation.
No description provided.