diff --git a/packages/rrweb-snapshot/src/types.ts b/packages/rrweb-snapshot/src/types.ts index 1abfe4d6c0..e4538a827a 100644 --- a/packages/rrweb-snapshot/src/types.ts +++ b/packages/rrweb-snapshot/src/types.ts @@ -169,6 +169,10 @@ export type SlimDOMOptions = Partial<{ headMetaHttpEquiv: boolean; headMetaAuthorship: boolean; headMetaVerification: boolean; + /** + * blocks title tag 'animations' which can generate a lot of mutations that aren't usually displayed in replayers + **/ + headTitleMutations: boolean; }>; export type DataURLOptions = Partial<{ diff --git a/packages/rrweb/src/record/index.ts b/packages/rrweb/src/record/index.ts index 91f06e6350..ffc6f88b6d 100644 --- a/packages/rrweb/src/record/index.ts +++ b/packages/rrweb/src/record/index.ts @@ -174,7 +174,7 @@ function record( // as they destroy some (hidden) info: headMetaAuthorship: _slimDOMOptions === 'all', headMetaDescKeywords: _slimDOMOptions === 'all', - headTitleMutations: _slimDOMOptions === 'all', // block title tag 'animation' which can generate a lot of mutations that aren't usually displayed in replayers + headTitleMutations: _slimDOMOptions === 'all', } : _slimDOMOptions ? _slimDOMOptions