biscolab / laravel-recaptcha

Google ReCaptcha package for Laravel
https://github.com/biscolab/laravel-recaptcha#readme
MIT License
515 stars 63 forks source link

Lazy load script (poor lighthouse score) #73

Open heddn opened 2 years ago

heddn commented 2 years ago

image

It would be nice to lazy load recaptcha as I don't even have the protected form until much lower on the page. Why download the script in the header when it could be loaded in the footer?

danilpon98 commented 2 years ago

The documentation says: Lazy loading is not recommended

heddn commented 2 years ago

Hmm, maybe I used the wrong wording. It would be nice to load it later in the page request. Right now it effects my LCP scores a lot.

Eventually after posting this issue and since I don't get that much spam I decided to disable it entirely. I'd rather have it as an option to load it later or lazy, rather then make the painful decision to disable it entirely.

anejjar commented 2 years ago

Any progress on this issue?

RahulDey12 commented 1 year ago

you guys can give a try to https://github.com/RahulDey12/laravel-captcha/ it's a new package developed by me.