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

Search组件在页面路由过多时会存在卡顿 #2

Closed
yeahhhz opened this issue Jan 12, 2021 · 2 comments
Closed

Search组件在页面路由过多时会存在卡顿 #2

yeahhhz opened this issue Jan 12, 2021 · 2 comments

Comments

@yeahhhz
Copy link

yeahhhz commented Jan 12, 2021

Search组件利用opacity和visibility的切换显示是挺巧妙的。
不过当页面路由过多时会存在明显卡顿。
原因我认为是可能是子元素全部都继承opacity属性,导致内存问题。

@hooray
Copy link
Member

hooray commented Jan 12, 2021

我个人测试发现问题主要在 backdrop-filter: blur(10px); 样式上,你可以尝试去掉该样式再测试下卡顿情况是否有好转

@yeahhhz
Copy link
Author

yeahhhz commented Jan 12, 2021

是的,确实是由backdrop-filter造成的。

@yeahhhz yeahhhz closed this as completed Jan 12, 2021
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