Skip to content

Commit 72e7ecd

Browse files
committed
perf(StylesService): populate rb-style-helpers style tag via textContent instead of createTextNode
1 parent 035b400 commit 72e7ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/scripts/private/services/styles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const StylesService = {
1616
if (document.getElementById(ID)) return;
1717
const styleElm = document.createElement('style');
1818
styleElm.id = ID;
19+
styleElm.textContent = STYLES;
1920
document.head.appendChild(styleElm);
20-
styleElm.appendChild(document.createTextNode(STYLES));
2121
}
2222
};
2323

0 commit comments

Comments
 (0)