Deregister Comments Reply JS

If you're not using comments on your site you can improve page load speed by deregistering the WordPress Comments Reply JavaScript file.

If you’re not using comments on the site, you can reduce HTTP requests by de-registering this script.

Add the following code snippet to your theme functions.php file

function clean_header(){
	wp_deregister_script( 'comment-reply' );
         }
add_action('init','clean_header');

Hire WordPress Experts at Codeable.

The only WordPress exclusive freelancer platform that connects thousands of customers with the top WordPress freelance experts to work on projects of any size. 

Free estimate • No obligation to hire • 100% risk-free