Code Snippets

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 an experienced Kelowna WordPress developer.  We’ve been building WordPress websites full-time for over a decade. We can help you.