Recaptcha: Recaptcha is requesting recaptcha__en.js file multiple times

Created on 1 Jun 2018  路  20Comments  路  Source: google/recaptcha

Hi there,

I was having this problem with one of my projects and to try to figure out what was wrong I decided to run the example code from recaptcha docs.

Even with this example code the page is still requesting the file multiple times.

Here is a jsFiddle with the example code: https://jsfiddle.net/7h7rnqbn/

Just open the network tab and see the file requests.

widget

Most helpful comment

@Malvoz No, this issue has not resolved yet.
On one hand google pagespeed complains of reducing number of request and here recaptcha is unnecessarily adding an extra request for same file.

One request is being initiated by https://www.google.com/recaptcha/api.js and another by https://www.google.com/recaptcha/api2/anchor

If anyone finds any workaround to this mess then please post here.

All 20 comments

It looks like the widget itself re-uses the recaptcha__en.js file. In the network tab you should see different initiators for those requests.

what is the resolution for this issue ?

@sandeepsingh3
Apparently there isn't one....
I waited for so long for a response that I moved on. After a month or two @rowan-m responded. He just stated what I already knew(that is the recaptcha widget that re-uses the file) and closed the issue.

I still get this issue.

Still getting the issue. Loading same files 3 times, and each is 250KB unzipped, which is quite a lot!

This issue may be resolved in https://github.com/google/recaptcha/issues/331.

@Malvoz No, this issue has not resolved yet.
On one hand google pagespeed complains of reducing number of request and here recaptcha is unnecessarily adding an extra request for same file.

One request is being initiated by https://www.google.com/recaptcha/api.js and another by https://www.google.com/recaptcha/api2/anchor

If anyone finds any workaround to this mess then please post here.

this Issue still bothers us and add significant 'drag' to our load time

same issue

Same here. Very heavy issue, I'll probably get rid of recaptcha for the time being.

More than two years have passed and still no solution. What a disappointment this is turning out to be.

Any updates to this? Might be good to get some insights if this would be fixed sometime soon or in the distant future

@alonseg

this Issue still bothers us and add significant 'drag' to our load time

use explicit render method to avoid loading recaptcha during page load.

@alonseg

this Issue still bothers us and add significant 'drag' to our load time

use explicit render method to avoid loading recaptcha during page load.

@jazkh have you treid that? with explicit render the issue is exactly the same. the file (exact content) is downloaded 3 times. I really don't understand this behavior from Google and their #perfmatters campaign. very disapointed here!

I'm facing this issue. Any news?

Google imposes how to do things, but even they don't comply. In my village, this is called politics.

any news?

+1 :(

use another method, google says its not their problem

Why was this issue closed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Chaython picture Chaython  路  5Comments

Antaris picture Antaris  路  11Comments

rishisattoor picture rishisattoor  路  14Comments

leetoufong picture leetoufong  路  7Comments

apriebe picture apriebe  路  7Comments