Open shrpne opened 6 years ago
When the component is used multiple times, it will generate multiple requests to the same file. So it's better to implement some cache.
Here are some examples how it's done in other implementations: https://github.com/uikit/uikit/blob/develop/src/js/core/svg.js https://medium.com/@jackysee/simple-loading-svg-inline-in-vue-35994f5326f2
When the component is used multiple times, it will generate multiple requests to the same file. So it's better to implement some cache.
Here are some examples how it's done in other implementations: https://github.com/uikit/uikit/blob/develop/src/js/core/svg.js https://medium.com/@jackysee/simple-loading-svg-inline-in-vue-35994f5326f2