Load recaptcha async or when form is clicked
Closed this issue · 1 comments
johrclaessens commented
The recaptcha library impacts page loading times a lot. This could be fixed by dynamically loading the script once the user clicks on the form or simply after the page is loaded to prevent long page loading times.
It also should have a toggle in the settings for pages who run in trouble when using this method.
skydiver commented
Hey @johrclaessens
You can copy components/partials/recaptcha.htm
to your theme and modify, maybe add some javascript listener to load the recaptcha code when you need it.