If you want to load a form in a modal after the site is completly loaded, it will fail with a javascript error.
Uncaught ReferenceError: grecaptcha is not defined
So the script tag has to be added via javascript and the grecaptcha.ready()-function has to be registered on the script.load()-event
to prevent executing the ready()-function before the google-js is loaded.
If you want to load a form in a modal after the site is completly loaded, it will fail with a javascript error.
Uncaught ReferenceError: grecaptcha is not defined
So the script tag has to be added via javascript and the grecaptcha.ready()-function has to be registered on the script.load()-event to prevent executing the ready()-function before the google-js is loaded.