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 script performance issues #284

Open
CodingatTiffanys opened this issue Dec 15, 2023 · 4 comments
Open

Recaptcha script performance issues #284

CodingatTiffanys opened this issue Dec 15, 2023 · 4 comments

Comments

@CodingatTiffanys
Copy link

react-google-recaptcha version: "^2.1.0"
react-async-script version: Y.Y.Y

We are experiencing performance issues and at the top of our list it shows us hitting the recaptcha script several times. Is anyone else experience this? Perhaps I missed something in the docs? We are not/do not have the react-async-script library installed.

@Scott-Fischer
Copy link

We are not/do not have the react-async-script library installed.

@CodingatTiffanys Just a head's up that you technically do have react-async-script installed if you're using react-google-recaptcha because it gets imported and used in the component.

@CodingatTiffanys
Copy link
Author

Thanks @Scott-Fischer, after further digging I had come to that realization. However, still unsure what to do about the performance issues were seeing. Any ideas?

@SoloRatRacer97
Copy link

I've tried manually loading the script, differing load until scroll, waiting for the page's content to be done loading, and trying to dynamically import it, and nothing is fixing the performance issue.

On page speed, I'm consistently seeing it load the script twice and its slowing down performance for my app.

I've had this library installed for 5+ months and was used to seeing a score of 90+ on page speed, but checking it today and I'm down pretty significantly. Let me know if you hear anything!

@CodingatTiffanys
Copy link
Author

@SoloRatRacer97 I also tried the above as well as a different 3rd party library and had the same results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants