Open sdrenth opened 3 years ago
Hello @sdrenth thanks for the feedback and definitely will add some documentation for this, perhaps here?
https://sepiariver.com/modx/a-guide-to-recaptcha-v3-for-modx-cms/
The default chunk is meant as that: a default starting point that can be customized for any implementation. The challenge with changing it is that some sites, which have already implemented the default, may break on update if there’s an expectation that the script will be called as-is.
Loading the recaptcha library impacts the google pagespeed. This can be resolved by loading it deferred like this:
Note the defer attribute on the script element and the onloadCallback function.
I think it would not be a problem to load it deferred in the default chunk.