diff options
author | Michael Grosser <development@stp-ip.net> | 2017-05-17 10:53:53 +0300 |
---|---|---|
committer | Michael Grosser <development@stp-ip.net> | 2017-05-17 10:54:51 +0300 |
commit | b19794acb10933f229b1515f6c4a609f3607317b (patch) | |
tree | c943e03fa0c82aa279752130f6965a1d3e3ee80f | |
parent | 44ae4440253bdb469ddd26ed68e3adc7fcdf87f8 (diff) |
Load recaptcha code later
-rw-r--r-- | layouts/partials/footer_scripts.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/layouts/partials/footer_scripts.html b/layouts/partials/footer_scripts.html index b97f45f..7a04e84 100644 --- a/layouts/partials/footer_scripts.html +++ b/layouts/partials/footer_scripts.html @@ -24,3 +24,7 @@ {{ range .Site.Params.custom_js }} <script src="{{ . | absURL }}"></script> {{ end }} + + {{ with .Site.Params.contact.captcha }} + <script src='https://www.google.com/recaptcha/api.js' async defer></script> + {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 59022e8..6c84fae 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -36,7 +36,4 @@ <!--[if lte IE 9]><link rel="stylesheet" href="/assets/css/ie9.css" /><![endif]--> <noscript><link rel="stylesheet" href="/assets/css/noscript.css" /></noscript> - {{ with .Site.Params.contact.captcha }} - <script src='https://www.google.com/recaptcha/api.js' async defer></script> - {{ end }} </head> |