How to Remove comment-reply.min.js File in WordPress

WpFASTER Code 3 Comments

Not allowing comments on your WordPress site? Using Disqus? You might want to get rid of the “/wp-includes/js/comment-reply.min.js” file from WordPress then (less JavaScript = a more performant site!). To do so, copy and paste this code snippet — in plain text — to your functions.php file, or, add it with a plugin like Code Snippets.

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

Comments 3

Leave a Reply

Your email address will not be published. Required fields are marked *