greggilbert / recaptcha

[ABANDONED] reCAPTCHA Validator for Laravel 5
MIT License
713 stars 196 forks source link

async javascript #29

Closed xavadu closed 9 years ago

xavadu commented 10 years ago

Hello,

What about to call the javascript file with async?, so the script is non-blocking the page load

<script type="text/javascript" async src="//www.google.com/recaptcha/api/challenge?k=<?php echo $public_key ?><?php echo (isset($lang) ? '&hl='.$lang : '') ?>"></script>

or add an option to allow async

Cheers, J.

greggilbert commented 9 years ago

Sorry, this is a limitation in how the reCAPTCHA works overall. See the official docs.