creotip / vue-particles

Vue.js component for particles backgrounds ✨
http://vue-particles.netlify.com/
1.44k stars 194 forks source link

Particles, router and performance #55

Open DimaGashko opened 5 years ago

DimaGashko commented 5 years ago

Thanks for this vue plugin. It's helpful, but can you fix memory (and performance) leaks? When it's used in landing page everything is good, but if there's a router...

Screenshot from 2019-06-01 00-07-54

In fact, https://github.com/creotip/vue-particles/issues/20 fix performance problem, but it still has too many EventListeners on window.

(I know, it's not your error, it's vanilla particles.js has too many errors and anti-patterns)

htfranek commented 4 years ago

So nothing is happening here? Did you manage to solve this thing?

hirosciutto commented 2 years ago

I am also having trouble with this problem. For example, I would like to know a technique to destroy a component when it is hidden. Thank you.

markwrightdev commented 2 years ago

I am also having trouble with this problem. For example, I would like to know a technique to destroy a component when it is hidden. Thank you.

This is because the dependency particles.js has a memory leak (source), and both projects seems abandoned. I switched to particles.vue some time ago and the issue is solved there.