Skip to content

Commit 33066c2

Browse files
committed
fix: load turnstile script
1 parent 1ee8322 commit 33066c2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
gtag('config', 'G-8D0MD2S4PK');
3939
</script>
4040
<!-- Cloudflare (turnstile) -->
41-
<script async src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onAppReady"></script>
41+
<script defer src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onAppReady"></script>
4242

4343

4444
<title>React App</title>

src/server/Html.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ function Html({
8181
async
8282
src="https://www.googletagmanager.com/gtag/js?id=G-8D0MD2S4PK"
8383
></script>
84-
<script>
85-
86-
</script>
8784
<script
8885
dangerouslySetInnerHTML={{
8986
__html: `window.dataLayer = window.dataLayer || [];
@@ -94,7 +91,7 @@ function Html({
9491
}}
9592
></script>
9693
<script
97-
async
94+
defer
9895
src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onAppReady"
9996
></script>
10097
</head>

0 commit comments

Comments
 (0)