Sometimes I have to reload a webpage several times until reCaptcha displays. My friend and I tested both in Firefox and in Chrome, but the problem is consistent and does not seem to depend on the browser used.
The code I use to display my reCaptcha:
<script src='https://www.google.com/recaptcha/api.js?onload=CaptchaCallback&render=explicit' async defer></script> <script> var CaptchaCallback = function(){ grecaptcha.render('RecaptchaField1', {'sitekey' : '6LdbWAo..'}); grecaptcha.render('RecaptchaField2', {'sitekey' : '6LfAVAo..'}); grecaptcha.render('RecaptchaField3', {'sitekey' : '6LfqWwo..'}); grecaptcha.render('RecaptchaField4', {'sitekey' : '6Lf4sAo..'}); };
And later on the forms, I simply added: <div id="RecaptchaField1"></div> with the correct number.
Forms are always inside boot modal, if that worries?
Edit: I removed the async and defer .
Edit 2: Page that has problems: http://www.dexquote.com
source share