I can't for the life of me figure out what I'm doing wrong here. The loaded() callback should fire but does not. Here's the code for a reduced test case (with a JS fiddle link below):
<script> function loaded() { alert('loaded() triggered.'); } </script> <script src="https://www.google.com/recaptcha/api.js?onload=loaded" async defer></script>