Removing emoji javascript in wordpress

WordPress adds to its 4.2 build some emoji icons code, which a lot of people using WordPress will find totally unnecessary.

So for those who have no need for emoji’s and the unnecessary impact on server load times and http requests, there are 2 options-

1- Use the disable emoji’s plugin

2 – If you don’t want to use a plugin then add this piece of code to your functions.php file-

remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');

remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );