Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(snapshots): switch MutationObserver to only observer attributes (#…
…5220) Everything but attributes in the light dom is manually compared during DOM traversal, for example child nodes or scroll offset. This way we get a bullet-proof solution that works with input values, scroll offsets, shadow dom and anything else web comes up with. We also restore scroll only on the document scrolling element, for performance reasons. We should figure out the story around scrolling. Changes stationary snapshots from ~0.5ms to ~2.5ms due to DOM traversal.
- Loading branch information
Showing
3 changed files
with
134 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.