-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
isBlocked factors in the selector #894
Conversation
@Yuyz0112 Hey man, we've added a bunch of changes to Rrweb as we are using it on thousands of websites and noticed some flaws. Let us know if certain things are missing for this to get merged in. |
Hey @dbseel, any chance you could fix the merge conflicts? |
@Juice10 Done. Can we get this merged in? It has been sitting here 3 months, don't want to have to rebase again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for rebasing @dbseel, apologies that this has been sitting for so long. Thank you for your fixes! I'm going to do my best to get this merged ASAP for you
I noticed ignoreCSSAttributes
isn't documented yet in https://github.com/rrweb-io/rrweb/blob/5f59f9171e481c78d08a1008186cff31a40ee199/guide.md#options could you add one to guide.md
and a placeholder (or maybe google translated) to the Chinese guide.zh_CN.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @dbseel! Really appreciate your contribution. Apologies that it took so long for us to review it
I don't but I've messaged the other members of the core team, so it should get merged soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job!
Late to the party here! @dbseel what are the use cases for Also wondering whether |
We have encountered some websites where certain attributes were constantly being added/removed/updated on the DOM, but they did not affect the replay. So there was a huge performance improvement by ignoring these attributes. |
These are CSS rule attributes rather than DOM attributes though? |
In our case a website was using quantum metrics. This plugin was adding/removing attributes thousands of times a second. Attributes like this: --quantum-metric-background-image |
I've just come across this again today; I notice that |
Support a list of blocked classes in a CSS selector (blockSelector) in addition to the blockClass.
Also ensure only node types are passed into contains.
Also support providing a list of CSS properties to ignore on set/remove stylesheet mutations