laravel-recaptcha icon indicating copy to clipboard operation
laravel-recaptcha copied to clipboard

Lazy load script (poor lighthouse score)

Open heddn opened this issue 3 years ago • 4 comments

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?

heddn avatar Feb 09 '22 16:02 heddn

The documentation says: Lazy loading is not recommended

danilpon98 avatar Feb 21 '22 07:02 danilpon98

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.

heddn avatar Feb 21 '22 13:02 heddn

Any progress on this issue?

anejjar avatar Oct 06 '22 19:10 anejjar

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

RahulDey12 avatar Nov 08 '23 19:11 RahulDey12