When i put
<script>
  var renderCaptchas = function() {
    grecaptcha.render(this, {
      'sitekey' : {{ google_recaptcha_site_key }}
    });
  };
  var onloadCaptchaCallback = function () {
    Array.prototype.forEach.call(document.querySelectorAll('.g-recaptcha'),
     renderCaptchas);
  };
</script>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCaptchaCallback&render=explicit" async defer></script>
I have this error :
reCAPTCHA couldn't find user-provided function: onloadCaptchaCallback
The function is yet well defined ... If i remove
grecaptcha.render(this, {
  'sitekey' : {{ google_recaptcha_site_key }}
});
Then it finds the callback ... I use the Google ReCaptcha v2, with the checkbox "mode".
 
    