Replies: 0
I am doing the work to improve speed on my website, analysing with Google’s PageSpeed tool. One of the last significant delay issues I have is loading recaptcha from wp-members. I have tracked to static function recaptcha() in class-wp-members-captcha.php, line 130 which reads:
$html = '<script src="' . $wpmem_recaptcha_url . '?render=' . $key . '"></script>';
The previous option in the code (3 lines above):
$html = '<script src="' . $wpmem_recaptcha_url . '" async defer></script>
… adds “async defer” to the <script> tag. I added that in my copy of line 130, and recaptcha still appears to do its job on the page. However when I made this change, my page speed went from 89/100 to 98/100. My question is, why does one has async defer and the other not?