[object Object]

← back to Wallco Ai

perf(head): preconnect googletagmanager + dns-prefetch google-analytics — shaves ~100-300ms off GA4 initial TLS+DNS handshake; pairs with existing fonts preconnects

8abdd794e9752230f1005105200c68a540dab428 · 2026-05-14 14:18:36 -0700 · SteveStudio2

Files touched

Diff

commit 8abdd794e9752230f1005105200c68a540dab428
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Thu May 14 14:18:36 2026 -0700

    perf(head): preconnect googletagmanager + dns-prefetch google-analytics — shaves ~100-300ms off GA4 initial TLS+DNS handshake; pairs with existing fonts preconnects
---
 server.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server.js b/server.js
index a08fdb7..636e889 100644
--- a/server.js
+++ b/server.js
@@ -2322,6 +2322,8 @@ ${GTAG}
 <link rel="stylesheet" href="/css/site.css">
 <link rel="preconnect" href="https://fonts.googleapis.com">
 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+<link rel="preconnect" href="https://www.googletagmanager.com">
+<link rel="dns-prefetch" href="https://www.google-analytics.com">
 <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Inter:wght@300;400;500&display=swap" rel="stylesheet">
 </head>`;
 }

← eb8097b perf(/designs): preload first 6 card images in <head> with f  ·  back to Wallco Ai  ·  feat(/samples): add autocomplete + inputmode + enterkeyhint a29ccea →