reCAPTCHA not loading on first attempt
When adding a reCAPTCHA to a form, the first load of the form the reCAPTCHA isn't always loading. In the console I see the following error: reCAPTCHA couldn't find user-provided function: nfRenderRecaptcha. I see that nfRenderRecaptcha is in /assets/js/min/global.js and /assets/js/min/front-end-deps.js
Steps to reproduce:
- Open a new tab
- Open the Network tab of Chrome Developer Tools
- Select Disable cache
- Open a form containing reCAPTCHA
If the cache is enabled again then the reCAPTCHA loads.
I'm using WordPress 5.2.4 with Ninja Forms 3.4.20.