Closed ShanaMaid closed 5 years ago
Hi @ShanaMaid,
Keen UI doesn't bundle many icons, and the UiIcon component is just a thin-wrapper around user-provided SVG or font-icons.
Your tool will probably be a better fit for application projects, not a library like Keen UI.
ok, you right! best wish for Keen UI
For example, if a 100kb svg has been used in a production project, the user needs to load an additional 100kb svg content each time the project releases a new bundle.
If the svg is packaged in chunks, when the developer introduces a new svg (assuming 1 kb), the user needs to load an additional 100 kb of content for this 1 kb update.
If you use asynchronous loading and cache svg, the above problem does not occur.
my tool that solves the above problem: archer-svgs
online demo: click me