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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…