Along with the WordPress 4.8 updates, there was added few new things such as Emoji Icons. This new addition creates a long script and some styles inside the tag of all your WordPress pages, which affects your website loading speed.
Emoji icons are a new set of emoticons used in Android OS, iOS and even others. Since everybody complains that they can’t disable the Emoji icons from admin panel, here is a simple fix to remove the script with few lines of code.
The Problem
The script and the styles below should appear in every page inside the tag. Please note that I deleted some portions of the code as it is too long.
Remove Emoji Script from WordPress
To remove or disable the script completely from all your pages, find functions.php file inside your actual WordPress Theme, using FTP or WordPress Editor (located in Appearance Menu) and add the lines below:
// REMOVE EMOJI SCRIPT FROM HEAD TAG IN WORDPRESS
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('admin_print_scripts', 'print_emoji_detection_script');
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action('admin_print_styles', 'print_emoji_styles');
The code above hooks the functions of the Emoji script and tells WordPress to remove it from before the page is loaded. Hope this helped.