I am using recaptcha
v2
I am getting the following error occasionally (sometimes i don't get error and sometimes i do get it)
Uncaught ReferenceError: grecaptcha is not defined
It seems because of the internal http request. that takes some time to get another js recaptcha__en.js
. Meanwhile actual rendering code of grecaptcha
executes.
So what is the standard solution to avoid this issue.?
PS : of course i am looking for some solution other than setTimeout