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

[Performance] Load reCaptcha on focus to input to improve page load times #38303

Open
Bashev opened this issue Dec 19, 2023 · 7 comments · May be fixed by magento/security-package#334
Open

[Performance] Load reCaptcha on focus to input to improve page load times #38303

Bashev opened this issue Dec 19, 2023 · 7 comments · May be fixed by magento/security-package#334

Comments

@Bashev
Copy link
Contributor

Bashev commented Dec 19, 2023

Description

If reCaptcha is enabled, this few additional JS files are loaded automatically with the page loading. This reflects to the page speed of the site and of course, increase time to complete loading.

These files are external for the system and this also reflects to pagesspeed. They cannot be merged or bundled. This are 26 additional requests which comes with recaptcha loading.

image

Expected behavior

Load recaptcha related files (and entire library) to be loaded only if is required and have forms to which need to be applied.

Benefits

Reduce loading time, increase page speed of the site (Google Page Speed).

Additional information

No response

Release note

No response

Copy link

m2-assistant bot commented Dec 19, 2023

Hi @Bashev. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

@Bashev
Copy link
Contributor Author

Bashev commented Dec 19, 2023

@magento i am working on this

@Bashev
Copy link
Contributor Author

Bashev commented Dec 19, 2023

Fixed in magento/security-package#334

@Bashev Bashev changed the title reCapcha loading reflects to page speed reCaptcha loading reflects to page speed Dec 19, 2023
@Bashev
Copy link
Contributor Author

Bashev commented Dec 19, 2023

Before
image

After
image

@ihor-sviziev ihor-sviziev changed the title reCaptcha loading reflects to page speed [Performance] Load reCaptcha on focus to input to improve page load times Dec 20, 2023
@techtoni
Copy link

Re invisible reCaptcha v3 - the way this technology works is it tracks the user behaviour through the website to establish if it is real user or a bot. It is supposed to be included on all pages, not loaded after a form is interacted with, see documentation - https://developers.google.com/recaptcha/docs/v3

@Bashev
Copy link
Contributor Author

Bashev commented Aug 29, 2024

@engcom-Hotel you move it to feature request backlog, but it's already fixed with this PR (in security package) magento/security-package#334

How can be moved forward?

@engcom-Hotel
Copy link
Contributor

Hello @Bashev,

I think it is due to the migration of the project from the classic to the new one. Don't worry whenever your PR will merged we will close this issue.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants