简体   繁体   English

Google Recaptcha减慢页面加载速度

[英]Google Recaptcha slows page loading

I have a web page with 10 different forms. 我有一个包含10种不同形式的网页。 I rendered 10 different recaptchas using JavaScript. 我使用JavaScript渲染了10种不同的Recaptchas。 The problem is that when the page is loaded, it takes around 3-4 seconds to load and I don't like it. 问题是页面加载时需要大约3-4秒的加载时间,我不喜欢它。 If I remove the recaptha.js , it loads in 1 second. 如果删除recaptha.js ,它将在1秒内加载。 Any ideas? 有任何想法吗?

I made some tests and the problem was rendering 10 captchas at the same time, for some reason it takes like 1 second each 4 recaptchas. 我进行了一些测试,问题是同时渲染10个验证码,由于某种原因,每4个验证码大约需要1秒。 I solved it by rendering each recaptcha when the form is loaded, so it's reseted each time I open a new form. 我通过在加载表单时呈现每个Recaptcha来解决此问题,因此每次我打开新表单时都会将其重置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM