reCAPTCHA v3 page speed optimisation

2,910 views
Skip to first unread message

Siu Pang Tommy Choi

unread,
Mar 7, 2019, 12:56:59 PM3/7/19
to reCAPTCHA
Hi everyone,

Recently I tried to lazy load reCAPTCHA v3 by dynamically inserting the script when the input field is focused.
The consequence is many valid inputs are considered as spam.

Correct me if I am wrong, with my approach reCAPTCHA receives less human interactions on the page and so it gives a false negative...
Lowering the threshold even down to 2.5 does not help.

And by including the reCAPTCHA v3 script early on page load makes my mobile score in PageSpeed Insight drops from 89 to 60...

Any idea to resolve this dilemma?
I appreciate your help.

Regards,
Tommy

Cyquil

unread,
Mar 15, 2019, 2:04:52 PM3/15/19
to reCAPTCHA
I too am very interested in page speed optimisation with reCAPTCHA as it does load multiple large css, js and font files.

Regarding your issue -- you said you lowered the threshold to 2.5, however is the scale not 0.0-1.0? Isn't 0.5 the default? Perhaps try lowering it to 0.2 and see how that goes.

Oh I Will

unread,
Mar 19, 2019, 2:59:13 PM3/19/19
to reCAPTCHA

When you're showing Google reCAPTCHA (“protected by reCAPTCHA” badge) in all pages, your website will slow down a bit (reflect by PageSpeed Score). ReCAPTCHA badge when displayed by our website will have to load additional 1 JavaScript library from Google to display this badge. To improve this, you can hide Google reCAPTCHA v3  (only show it when necessary) by following this article:


Hope this helps!

Siu Pang Tommy Choi

unread,
Mar 19, 2019, 3:00:14 PM3/19/19
to reCAPTCHA
Sorry, you are right, I tried to say 0.25 instead.
With the lazy load attempt I tried, sometimes real human inputs will score 0...

Not only the downloads of external resources, the time of JavaScript evaluation rises and I gets a warning of high "Time to Interactive" etc. in PageSpeed Insights.
Reply all
Reply to author
Forward
0 new messages