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

[Bug]: 特殊场景录制时processMutation执行耗时较多,拖慢页面响应 #1569

Open
1 task done
rk-wjw opened this issue Sep 19, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@rk-wjw
Copy link

rk-wjw commented Sep 19, 2024

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrweb

Version

v2.0.0-alpha.11

Expected Behavior

image image

processMutation内如图位置是否可以添加过滤支持?
我这遇到一个特殊场景,页面中一些dom设置了大量的style内容,里面包含了大量的主题类变量设置,在开启录制时,processMutation这个位置计算就消耗了大量时间,实际上大部分是定义的主题变量,所以我的想法是能否提供过滤规则跳过不必要的属性计算,从而可以降低部分时间消耗。

Actual Behavior

image

如图所示
在页面开启录制时,进行操作之后页面进入卡死状态(操作会导致页面重绘)。

Steps to Reproduce

image

附一张带有大量style内容的dom截图

Testcase Gist URL

No response

Additional Information

在无法改变业务页面的前提下,是否有其他优化提升方案或建议。

@rk-wjw rk-wjw added the bug Something isn't working label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant