rrweb icon indicating copy to clipboard operation
rrweb copied to clipboard

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

Open rk-wjw opened this issue 1 year ago • 0 comments

Preflight Checklist

  • [X] 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 avatar Sep 19 '24 08:09 rk-wjw