Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reCaptcha is added multiple times to head #21

Open
sankalpshekhar opened this issue Sep 10, 2019 · 16 comments
Open

reCaptcha is added multiple times to head #21

sankalpshekhar opened this issue Sep 10, 2019 · 16 comments
Labels
Component: Google reCAPTCHA Issues and Pull Requests related to reCAPTCHA should be marked with this label Progress: ready for grooming
Projects

Comments

@sankalpshekhar
Copy link

The link to recaptchs js is added several times to head, which slightly delays the loading time of the captcha on required pages.

Preconditions

  1. Magento 2.3.2 vanilla install with sample data
  2. Google reCaptcha v2 keys created on google

Steps to reproduce

Expected result

  1. Recaptcha should only be loaded once.

Actual result

image

@Rickertje
Copy link

Also it is loaded (twice) on every page so also on pages where you would not expect it to be nessecary f.e. on homepage or category page.

@sdzhepa sdzhepa transferred this issue from another repository Jan 27, 2020
@sdzhepa sdzhepa added the Component: Google reCAPTCHA Issues and Pull Requests related to reCAPTCHA should be marked with this label label Jan 27, 2020
@okorshenko okorshenko added this to Ready for Grooming in Backlog Jan 28, 2020
@Lain818
Copy link

Lain818 commented Jan 29, 2020

same here; magento 2.3.3

@fmineo
Copy link

fmineo commented Mar 24, 2020

Same problem here : 2.3.2

@m2-community-project m2-community-project bot moved this from Ready for Grooming to Pull Request In Progress in Backlog Apr 7, 2020
@naydav
Copy link
Contributor

naydav commented Apr 7, 2020

Should be fixed in
#21

@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Done in Backlog Apr 8, 2020
@naydav
Copy link
Contributor

naydav commented Apr 8, 2020

#191

@enyceedanny
Copy link

Don't see this issue fixed on the latest release of Magento 2. It's still loading multiple instances of recaptcha__en.js

@hewgim
Copy link

hewgim commented Aug 28, 2021

Issue still exists on Magento 2.3.7-p1

@naydav - you mentioned this was fixed on 8th April 2020 ?

@cdcrothers
Copy link

This issue still exists in 2.4.2-p2 EE

@aodreman
Copy link

This issue is still present in Magento ver. 2.4.5, loading up to four times, increasing the payload of the website by about 1.4Mb
Screenshot 2023-05-31 at 12 59 29 PM

@fredden
Copy link
Member

fredden commented May 31, 2023

@nathanjosiah please can you reopen this so it can be investigated.

@sanganinamrata
Copy link
Member

@naydav Any update on this issue? Its still happening on Magento version 2.4.1 onwards all the latest versions.

@Naberdz
Copy link

Naberdz commented Jun 23, 2023

I have a bit different issue recaptcha lang script is being loaded multiple times. magento version 2.4.6. added manually recaptcha to our custom newsletter form.
Schermafbeelding 2023-06-23 om 15 44 18

@bharanii95dev
Copy link

This issue is existing in Adobe Commerce 2.4.5.P2 as well.

image

@waldok
Copy link

waldok commented Aug 21, 2023

Why is this closed? It looks like the issue is still there in 2.4.6-p1.

@fredden
Copy link
Member

fredden commented Aug 21, 2023

@nathanjosiah please can you reopen this so it can be investigated.

@andrewdaluz
Copy link

I'm not sure if I'm getting it right but it looks like this is all coming from Google script?
2023-12-08_10-03
2023-12-08_10-04
2023-12-08_10-05
2023-12-08_10-06
2023-12-08_10-06_1
2023-12-08_10-07

So it looks like from my limited knowledge that Google APIs as cascading the calls to the same script more than 1 time.
Does that make sense? And how to resolve it? Is that only google?
As per first image, it looks like Magento is already loading it just ONE time and Google is adding it multiple times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Google reCAPTCHA Issues and Pull Requests related to reCAPTCHA should be marked with this label Progress: ready for grooming
Projects
Backlog
  
Ready for Grooming
Development

No branches or pull requests