Skip to content

Commit 32863af

Browse files
committed
trying to get astro to run script correctly
Signed-off-by: rishichawda <[email protected]>
1 parent 427014e commit 32863af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/seo.astro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ const canonicalURL = new URL(
3030
<meta name="twitter:card" content="summary_large_image" />
3131
<meta name="twitter:image" content={image} />
3232

33+
<!-- Preconnect to AdSense domains to speed up connection -->
34+
<link rel="preconnect" href="https://pagead2.googlesyndication.com" crossorigin />
35+
<link rel="preconnect" href="https://googleads.g.doubleclick.net" crossorigin />
36+
37+
<!-- Use defer instead of async to unblock initial HTML parsing -->
3338
<script
34-
async
39+
defer
3540
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3355551817579937"
3641
crossorigin="anonymous"
42+
data-astro-rerun
3743
></script>
3844

3945
<Schema

0 commit comments

Comments
 (0)