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 a WordPress Expert

Get hourly and project based theme customization, theme tweaks, and development help from world-class WordPress developers at Codeable. If you’re in Kelowna and need a custom website for your business visit our Kelowna Web Design page now to get started.