Skip to content

Commit a149c27

Browse files
FEATURE (analytics): Optimize analytics
1 parent 60cb0ec commit a149c27

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

app/layout.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ export default function RootLayout({
1616
}>) {
1717
return (
1818
<html lang="en">
19+
<head>
20+
{/* DNS Prefetch & Preconnect for Analytics */}
21+
<link rel="dns-prefetch" href="https://www.googletagmanager.com" />
22+
<link rel="dns-prefetch" href="https://www.google-analytics.com" />
23+
<link rel="dns-prefetch" href="https://mc.yandex.ru" />
24+
<link
25+
rel="preconnect"
26+
href="https://www.googletagmanager.com"
27+
crossOrigin="anonymous"
28+
/>
29+
<link
30+
rel="preconnect"
31+
href="https://mc.yandex.ru"
32+
crossOrigin="anonymous"
33+
/>
34+
</head>
35+
1936
<body
2037
className={jost.className}
2138
style={{ fontFamily: "Jost, sans-serif" }}

0 commit comments

Comments
 (0)