Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/angular/ssr/src/utils/inline-critical-css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ const CSP_MEDIA_ATTR = 'ngCspMedia';
* - Removes the event listener when all relevant `<link>` tags have been processed.
* - Uses event capturing (the `true` parameter) since load events do not bubble up the DOM.
*/
const LINK_LOAD_SCRIPT_CONTENT = `
(() => {
const LINK_LOAD_SCRIPT_CONTENT = /* @__PURE__ */ (() => `(() => {
const CSP_MEDIA_ATTR = '${CSP_MEDIA_ATTR}';
const documentElement = document.documentElement;

Expand All @@ -57,7 +56,7 @@ const LINK_LOAD_SCRIPT_CONTENT = `
};

documentElement.addEventListener('load', listener, true);
})();`;
})();`)();

/** Partial representation of an `HTMLElement`. */
interface PartialHTMLElement {
Expand Down
Loading