How to Reduce Requests on your WordPress Website by Removing Emoji Scripts and Styles

WordPress loads a few scripts by default to render emojis on the front end of your website. If you are not planning on displaying emojis on your site, then it really does not make sense to make your users load these scripts and styles.

You can easily remove (dequeue) emoji scripts from loading on your WordPress website by adding the following code to your functions.php file.

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' ); 

This is not going to lead to a massive performance improvement by any means, but removing these scripts does help a little. The fewer JavaScript and CSS files that you can load on your site the better. Your Google PageSpeed Insights score will thank you.