SVG components #56845
MrOxMasTer
started this conversation in
Ideas
SVG components
#56845
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Goals
Background
This feature will help in many ways. It is better to organize icons, optimize the site. There are practically no alternatives at the moment. You can make svg only as a JS component, which consumes a lot of resources
Proposal
We have special components for links, images, scripts, but still not for SVG.
How do I imagine:
this will be a component that will accept the id of the SVG icon in order to further combine this into a sprite.
Inside, you can use existing html solutions by yourself, for example, svg, use, symbol, and so on.
When the page loads, it will create an svg sprite and as the page loads, it will load into this sprite and will be able to cache, so that in the future these icons can be used on other pages and they will load faster
All reactions