We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
LINK_LOAD_SCRIPT_CONTENT
@PURE
1 parent df36a86 commit 5ebeb37Copy full SHA for 5ebeb37
packages/angular/ssr/src/utils/inline-critical-css.ts
@@ -32,8 +32,7 @@ const CSP_MEDIA_ATTR = 'ngCspMedia';
32
* - Removes the event listener when all relevant `<link>` tags have been processed.
33
* - Uses event capturing (the `true` parameter) since load events do not bubble up the DOM.
34
*/
35
-const LINK_LOAD_SCRIPT_CONTENT = `
36
-(() => {
+const LINK_LOAD_SCRIPT_CONTENT = /* @__PURE__ */ (() => `(() => {
37
const CSP_MEDIA_ATTR = '${CSP_MEDIA_ATTR}';
38
const documentElement = document.documentElement;
39
@@ -57,7 +56,7 @@ const LINK_LOAD_SCRIPT_CONTENT = `
57
56
};
58
59
documentElement.addEventListener('load', listener, true);
60
-})();`;
+})();`)();
61
62
/** Partial representation of an `HTMLElement`. */
63
interface PartialHTMLElement {
0 commit comments