Skip to content

Commit 217a17a

Browse files
committed
fix: load turnstile script
1 parent 5c2df32 commit 217a17a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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 src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onAppReady" defer></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

+4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ function Html({
9090
gtag('config', 'G-8D0MD2S4PK');`,
9191
}}
9292
></script>
93+
<script
94+
defer
95+
src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onAppReady"
96+
></script>
9397
</head>
9498
<body data-theme={theme}>
9599
<div id="root" dangerouslySetInnerHTML={{ __html: content }}></div>

0 commit comments

Comments
 (0)