Remove Emoji Script from WordPress – How To Video

Did you know that you are loading emojis on your WordPress website even if you don’t use them?

If you aren’t using these fun symbols you can remove the emoji script from WordPress.

When you turn off the emoji script it will make your page load faster. This can be done with no loss of functionality for 99% of WordPress websites.

The fact is most people never use the emoji features on WordPress.

It is only a small script. It generally it is 4.8 KB. This will load between 50ms to 300ms for your site, however that is still load time. Why load something your users don’t need?

At MRK WP we certainly don’t use these little delights of imagery. I decided to remove the emoji script. It was simple enough to complete this task. As a result I made a very quick video tutorial on how to make this tweak on your site.

Please make sure you have a child theme to use this script. If you don’t I’d highly recommend using WP Rocket.

Since I created this tutorial I found I no use this script. I am using WP Rocket on my site. It has this feature added in by default with a simple checkbox.

First – Copy the snippet from our GIST

Second – Paste the snippet in your functions.php file for your child theme

If you don’t have a child theme you should really think about creating one. A child theme will help you maintain your WordPress website. It means you can update parent themes with a lower risk of losing your updates or custom edits. You can add our GIST to functions file for your parent theme. However when you update your theme you will likely lose this change and have to re-implement the code.

If you are using Astra Pro you could try it in the Custom Layouts section of your configuration. I don’t recommend using this method as its a bunch of code hooks inside another hook. Not great.

Three – Enjoy a faster webpage and faster load times

This is a really simple way to make your site load faster. In a world where every millisecond counts its a quick win for any WordPress website.

If you want an even easier way to do this adjustment you can use WP Rocket. They also have a cool feature to turn of Embed as well. Many of us don’t use oEmbeds and this can save another 1KB.

Use these options in WP Rocket to turn of Emojis and Embeds
Use these options in WP Rocket to turn of Emojis and Embeds
  • Do these little files really make a difference in my load time?

    The change is often seen as very small for load time on a modern desktop however it is important to remember that these files are minified java-script files. That means they need to be unpacked and processed by your browser. Smart phones in particular can take a few seconds to parse this java-script. Why make your users wait for something they wont use?
  • Should I disable the Embeds file?

    If you don’t embed content or use Gutenberg then you could get away with this however I always leave it on. This is because we use Youtube and Vimeo a lot (even in this post). These items make use of the Embeds tool with WordPress so I just let that one be.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top