AspNetCore.ReCaptcha icon indicating copy to clipboard operation
AspNetCore.ReCaptcha copied to clipboard

Make it async?

Open mdima opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Hello, this plugin is great, just it lowers my "PageSpeed" score a lot. I am talking about the Recaptcha v3.

Describe the solution you'd like If the

Thanks!

mdima avatar Dec 02 '23 11:12 mdima

Hi @mdima ,

Thanks for the suggestion, unfortunately this is currently not possible as an inline script is generated for V3, and inline script's can be marked async or defer. Also, the inline script has to run after the recaptcha js has loaded, so we also can't mark the library as defer/async, because then the inline script won't work.

The V2 and V2 Invisible options already have defer in their script tags.

sleeuwen avatar Dec 19 '23 10:12 sleeuwen