creotip / vue-particles

Vue.js component for particles backgrounds ✨

Home Page:http://vue-particles.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Particles, router and performance

DimaGashko opened this issue · comments

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, #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)

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

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.

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.