haruaki07 / phosphor-svelte

A clean and friendly icon family for Svelte
MIT License
131 stars 6 forks source link

All icons are being loaded #4

Closed akiarostami closed 2 years ago

akiarostami commented 2 years ago

I am not sure when this happened, but if you look at the Network tab in the Developer Tool of your browser, you can see that the whole icon library is getting loaded on the client side.

This has made the application load time extremely slow.

CleanShot 2022-01-02 at 18 10 09

akiarostami commented 2 years ago

As I looked more into this issue, it seems that this is a svelte/vite issue, not your issue. They made a change in vite configuration which caused this. They do have an experimental solution for this. Just in case anyone else having this issue, they can read more here, see the release notes here and see the solution here under prebundleSvelteLibraries.

I will close this issue.