File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/@lwc/engine-dom/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ const isIE11 = !isUndefined((document as any).documentMode);
3232
3333// Global cache of style elements used for fast cloning
3434let styleElements : Map < string , HTMLStyleElement > = new Map ( ) ;
35- // Global cache of CSSStyleSheets because these need to be unique based on content
35+ // Global cache of CSSStyleSheets because these need to be unique based on content so the browser
36+ // can optimize repeated usages across multiple shadow roots
3637let stylesheets : Map < string , CSSStyleSheet > = new Map ( ) ;
3738// Bookkeeping of targets to CSS that has already been injected into them, so we don't duplicate
3839let shadowRootsToInsertedStylesheets : WeakMap < ShadowRoot , Set < string > > = new WeakMap ( ) ;
You can’t perform that action at this time.
0 commit comments