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

vue在单页模式下,来回切换页面会导致JS急速变慢 #40

Open
233cy opened this issue Aug 3, 2018 · 1 comment
Open

vue在单页模式下,来回切换页面会导致JS急速变慢 #40

233cy opened this issue Aug 3, 2018 · 1 comment

Comments

@233cy
Copy link

233cy commented Aug 3, 2018

例如单页中,登录然后到首页,登录页含有动画效果,来回切换数次感觉像是动画实例化了很多次然后导致JS异常的慢

@sishenhei7
Copy link

看了下源码,是会有这种情况。
源码没有对particles进行destroy,导致内存泄漏
想完美解决的话最好自己封装particle.js吧

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

2 participants