This is one way to defer the WordPress core comment-reply script, which is “comment-reply.min.js”. The following PHP function will add the “defer” attribute to the script tag for “comment-reply.min.js”.
function my_defer_scripts($tag, $handle, $src) { if ('comment-reply' == $handle) return "<script type='text/javascript' defer src='$src'></script>"; return $tag; } add_filter('script_loader_tag', 'my_defer_scripts', 10, 3);
Jeanne Evans
August 11th, 2021 at 7:14 am
Great. I eliminated it effectively by adding above code in kid topic function.php record.
Approved utilizing webpagetest apparatus likewise now Its totally eliminated.
albert bravo
December 7th, 2021 at 6:05 am
its best trick i think its very easy and simple from another query in this function