Blog

Speed up your WordPress Site by removing Emojis

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

From 4.2 version and on WordPress supports by default the Emojis. This is a great thing if you like using them in your posts and comments but its not the best thing to do if you want to make sure your WordPress site loads as fast as possible.

Below you can see the amount of javascript which is loaded in every page of your WordPress site, called by /wp-includes/js/wp-emoji-release.min.js?ver=4.2.2

If you're looking to remove emoji's 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' );

Use a plugin which disables Emojis

If you don't feel comfortable messing with your theme's function.php(even though its a very simple edit) you can use a plugin instead. Ryan Helner 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.

Makis Mourelatos

WC Athens 2016 co-organizer, WP Support and Security Aficionado, Wannabe Kitesurfer.

View Comments

  • Thank you for posting this. None of my website clients use emojis, too bad it's in WP at all as a resource hog, in my opinion.

    • They will probably dismiss it once they see that too many users are disabling it. I don't like it either.

    • Hi Harish. As you can see I have provided both ways; the plugin and using a code snippet. The latter one is preferred because its a more lightweight as a solution that adding and activating one more plugin to your site.
      So as an answer to your questions I can say that if you care about your site PageSpeed then its better to try and find solutions through code snippets and editing your theme files instead of adding a bunch of plugins especially for simple fixes like this one.

Share
Published by
Makis Mourelatos

Recent Posts

WordPress Theme Development

WordPress is a widely popular Content Management System (CMS) that powers over 40% of all…

12 months ago

WordPress Solutions

WordPress is a popular platform that empowers more than 60 million websites worldwide. Millions of…

12 months ago

WordPress Site Maintenance

In this article, we will cover ten crucial WordPress site maintenance tasks that every website…

12 months ago

WordPress Security Solutions

In this blog article, we will explore the various WordPress security solutions you can implement…

12 months ago

WordPress Plugin Solutions

Plugins are an integral part of WordPress, as they offer countless benefits and features that…

12 months ago

WordPress Optimization and Performance Improvement

In this article, we will explore various strategies that can help you enhance your WordPress…

12 months ago