Comments (10)
It seems faster from > 500ms
to 136ms/230ms
:
from unplugin-icons.
how can we test your repro? on my local I cannot see any performance slow down when loading the page.
Is it about running dev server or build + preview?
from unplugin-icons.
it seems to happen when running it in a mobile browser, like on chrome on android for example.
from unplugin-icons.
Can you try using passive modifier on click handler?.
Can you show performance details centered in 4s?
Can you check if lodash-es being tree shaked?
I always use the subpackage module, for example import sample from 'lodash-es/sample'
instead loading from lodash-es barrel? I also include the subpackage in vite optimizedDeps.include
array.
In dev or deployed app (build)?
from unplugin-icons.
Can you try using passive modifier on click handler?.
How do you do that?
Can you show performance details centered in 4s?
I'm not sure what you mean? Do you mean for me to screenshot the performance details for 4 seconds?
I always use the subpackage module, for example import sample from 'lodash-es/sample'
Does that make it faster?
In dev or deployed app (build)?
Both
I should be able to get to these tonight or tomorrow, will update here when I have more info
from unplugin-icons.
Does that make it faster?
It should, at least in dev server, check network tab (maybe the 600ms is about loading lodash-es barrel), I Will ckeck it tmr.
from unplugin-icons.
@SaintPepsi we've released v0.19.0
with Svelte 5 Runnes compiler, I'm going to check the performance on my mobile phone (Android 14)
from unplugin-icons.
About the lodash-es barrel, using your import in dev server lodash-es barrel chunk 256KB, using subpackage import + optimizedDeps.include ~12.5KB.
The passive event modifier is configured by Svelte 5 internally when safe.
from unplugin-icons.
Adding 25/100 children in the click handler is not cheap using any framework or even using VanillaJS, the problem seems not to be related to this repository, rather it seems like a problem with the logic in your reproduction.
from unplugin-icons.
@userquin I think you're right, I also posted it in svelte, also with a react example except it's not happening in react.
I'll try out v0.19.0
as well thanks
from unplugin-icons.
Related Issues (20)
- ID collisions in astro HOT 1
- `resolveId` doesn't work as expected when query params contains `.`s HOT 1
- components.d.ts path error if the name startswith prefix defined in collections HOT 6
- Vue 2 examples won't run
- Events don't fire in Vue 2 HOT 5
- How to use the icon's raw svg as url(data:....) in css? HOT 5
- How to auto import unplugin-icons ? HOT 1
- How to auto import icon set with plural names? HOT 7
- Symptom When the icon is imported automatically, an error message is displayed indicating that the icon version does not match
- Unable to use ?raw in SvelteKit HOT 3
- Hydration mismatch warning in vue >=3.4 (nuxt >=3.9) if an SVG uses `url(#id)` HOT 4
- Svelte 5 runes mode not working HOT 4
- Qwik type definitions are not exported in package.json HOT 1
- I import icons dynamically in Svelte? HOT 1
- About icon aspect ratio
- Vue error when using vue-tsc - Type '{}' is not assignable to type 'ComponentProps<string>' HOT 7
- An issue for vue2(<2.7) compiler with "transpile is not a function" HOT 9
- Support for Yarn PnP HOT 5
- Type error when add custom Iconify IconSet customCollections
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unplugin-icons.