<link rel='dns-prefetch' href='//s.w.org'>
-
remove_action( 'wp_head', 'wp_resource_hints', 2 );
-
function remove_dns_prefetch( $hints , $relation_type ) { -
if ( 'dns-prefetch' === $relation_type ) { -
return array_diff ( wp_dependencies_unique_hosts(), $hints ); -
} -
return $hints ; -
} -
add_filter( 'wp_resource_hints', 'remove_dns_prefetch', 10, 2 );
-
// Remove emoji script -
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); -
remove_action( 'wp_print_styles', 'print_emoji_styles' ); -
add_filter( 'emoji_svg_url', '__return_false' );