Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to cache icons with local/session storage #613

Open
danielbrazg opened this issue Jan 4, 2024 · 0 comments
Open

Add ability to cache icons with local/session storage #613

danielbrazg opened this issue Jan 4, 2024 · 0 comments

Comments

@danielbrazg
Copy link

Instead of doing many HTTP GET requests to fetch each icon (dynamically) every time the page is been refreshed, it will be useful to add support for caching the icon's SVG data in the local/session storage.
It can be done by reading the icons cached list also from the storage if it exists:
https://github.com/ant-design/ant-design-icons/blob/master/packages/icons-angular/src/component/icon.service.ts#L78C5-L78C5
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant