// Force comment-reply.js to load normally (fixes Safari reply race) add_filter( 'script_loader_tag', function ( $tag, $handle ) { if ( 'comment-reply' === $handle ) { $tag = preg_replace( '/\s+(async|defer)(=([\'"])(async|defer)?\3)?/', '', $tag ); } return $tag; }, 999, 2 );