MCPcopy Create free account
hub / github.com/ampproject/amphtml / addStyleString

Function addStyleString

testing/amp-performance-extension/measure.js:12–16  ·  view source on GitHub ↗
(root, str)

Source from the content-addressed store, hash-verified

10}
11
12function addStyleString(root, str) {
13 const node = document.createElement('style');
14 node./*OK*/ textContent = str;
15 root.appendChild(node);
16}
17
18function measureCLS() {
19 const supported = PerformanceObserver.supportedEntryTypes;

Callers 1

measure.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected