Speed up your WordPress Site by removing Emojis

Speed up WordPress by removing emojis: functions.php code that stops the emoji script loading on every page

What is an Emoji? It’s a small digital image or icon used to express an idea, emotion, etc., in electronic communication.

How to Disable WordPress Emojis

Since version 4.2, WordPress supports emojis by default. This is a great thing if you like using them in your posts and comments but it’s not the best thing to do if you want to make sure your WordPress site loads as fast as possible.

WordPress loads this extra JavaScript file on every page of your site: /wp-includes/js/wp-emoji-release.min.js.

Is your WordPress site still slow? We review what’s slowing your site down and tune it to load faster, for a flat $299. See speed optimization →

If you’re looking to remove emojis from your WordPress installation then you can follow one of the two ways which can be found below:

Disable Emojis using functions.php

The best way to remove emoji from your post and pages header is to add the following code to your theme or child theme (preferably) 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' );
				
			
★★★★★
My site load times were slow and I needed FixMyWP to help me fix this. When they worked on the site, they learned that my server was the major problem with the slowness … Things are so much better.
Liana Roxanne Clark
eclecticjourneyphotography.com

Use a plugin which disables Emojis

If you don’t feel comfortable messing with your theme’s functions.php (even though it’s a very simple edit) you can use a plugin instead. Ryan Hellyer created the Disable Emojis Plugin which lets you do just that!

Keep in mind that even though you remove emojis they can still work (without hurting your site speed performance) through browsers which have built in support for them.

Let me know through the comments if you have any questions or need any help.

Cover of the free WordPress Optimization Guide from LeDetailWP

Free guide from LeDetailWP

WordPress Optimization Guide

Optimization steps you can finish in about an hour to make your WordPress site faster. No tech jargon.

Get the free guide →

Is your WordPress site still slow?

We review what’s slowing your site down, compress images and tune your site so pages load faster. Flat rate of $299, usually done the same day or within 24 business hours.

See speed optimizationNot sure? Answer 4 quick questions

In this article

Need a hand with your site?

Answer four quick questions and see your flat price before you pay. Most fixes are done the same day or within 24 business hours.

Related articles