Skip to content

Commit 4b60f3d

Browse files
committed
fix
1 parent 9ebae4a commit 4b60f3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/user/auth/captcha.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<div class="inline field tw-text-center required">
1111
<div id="captcha" data-captcha-type="g-recaptcha" class="g-recaptcha-style" data-sitekey="{{.RecaptchaSitekey}}"></div>
1212
</div>
13-
<script src='{{URLJoin .RecaptchaURL "api.js"}}'></script>
13+
<script defer src='{{URLJoin .RecaptchaURL "api.js"}}'></script>
1414
{{else if eq .CaptchaType "hcaptcha"}}
1515
<div class="inline field tw-text-center required">
1616
<div id="captcha" data-captcha-type="h-captcha" class="h-captcha-style" data-sitekey="{{.HcaptchaSitekey}}"></div>
1717
</div>
18-
<script src='https://hcaptcha.com/1/api.js'></script>
18+
<script defer src='https://hcaptcha.com/1/api.js'></script>
1919
{{else if eq .CaptchaType "mcaptcha"}}
2020
<div class="inline field tw-text-center">
2121
<div class="m-captcha-style" id="mcaptcha__widget-container"></div>
@@ -25,5 +25,5 @@
2525
<div class="inline field tw-text-center">
2626
<div id="captcha" data-captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
2727
</div>
28-
<script src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script>
28+
<script defer src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script>
2929
{{end}}{{end}}

0 commit comments

Comments
 (0)