Skip to content

Commit 7333ecd

Browse files
committed
set strat to after interactive
1 parent f094158 commit 7333ecd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

next/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function RootLayout({
2424
href="/sitemap_index.xml"
2525
/>
2626
<GoogleTagManager gtmId="GTM-TBZCV32" />
27-
<Script src="https://vantage-api.com/i.js" />
27+
<Script src="https://vantage-api.com/i.js" strategy="afterInteractive" />
2828
</head>
2929
<body className={inter.className}>
3030
<TopNav />

next/components/RegionLinkPreloader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const linksMapping: Set<{
88
preload: () => void;
99
}> =
1010
typeof window !== "undefined"
11-
? // @ts-expect-error: This is not typed to get on the window.
11+
? // @ts-ignore: This is not typed to get on the window.
1212
window.__LINKS_MAPPING__ || new Set()
1313
: new Set();
1414

@@ -36,7 +36,7 @@ function handleWindowMovement() {
3636

3737
if (typeof window !== "undefined") {
3838
if (!("__LINKS_MAPPING__" in window)) {
39-
// @ts-expect-error: This is not typed to get on the window.
39+
// @ts-ignore: This is not typed to get on the window.
4040
window.__LINKS_MAPPING__ = linksMapping;
4141
window.addEventListener("mousemove", handleMouseMove);
4242
window.addEventListener("scroll", handleWindowMovement);

0 commit comments

Comments
 (0)