Home › Forums › Invisible reCaptcha › How-To and Troubleshooting › Do not render JavaScript code on unused pages › Reply To: Do not render JavaScript code on unused pages
June 23, 2017 at 8:59 am
#4555

Sai A
Participant
Hi,
Add this at the bottom of your funtions.php file.
add_action('wp_print_scripts', function (){
if(is_home()){
wp_dequeue_script( 'google-invisible-recaptcha' );
}
});