File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 38
38
gtag ( 'config' , 'G-8D0MD2S4PK' ) ;
39
39
</ script >
40
40
<!-- Cloudflare (turnstile) -->
41
- < script src ="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onAppReady " defer > </ script >
41
+ < script async src ="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onAppReady "> </ script >
42
42
43
43
44
44
< title > React App</ title >
Original file line number Diff line number Diff line change @@ -49,8 +49,10 @@ const loadTheme = () => {
49
49
} ;
50
50
51
51
const loadTurnstile = ( ) => {
52
+ console . log ( 'loading turnstile' ) ;
52
53
if ( ssrEnabled ) return ;
53
54
( window as any ) . onAppReady = function ( ) {
55
+ console . log ( 'onAppReady' ) ;
54
56
( window as any ) . isTurnstileReady = true ;
55
57
const event = new CustomEvent ( 'isTurnstileReadyChange' ) ;
56
58
window . dispatchEvent ( event ) ;
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ function Html({
81
81
async
82
82
src = "https://www.googletagmanager.com/gtag/js?id=G-8D0MD2S4PK"
83
83
> </ script >
84
+ < script >
85
+
86
+ </ script >
84
87
< script
85
88
dangerouslySetInnerHTML = { {
86
89
__html : `window.dataLayer = window.dataLayer || [];
You can’t perform that action at this time.
0 commit comments