Removing emoji javascript in wordpress

WordPress adds to its 4.2 build some emoji icons code, which a lot of people using WordPress will find totally unnecessary.

So for those who have no need for emoji’s and the unnecessary impact on server load times and http requests, there are 2 options-

1- Use the disable emoji’s plugin

2 – If you don’t want to use a plugin then add this piece of code to your functions.php file-

// REMOVE WP EMOJI
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');

remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );

Facing the ‘White Screen of Death’

One of the worst situations you can face is seeing your WordPress site and facing a blank screen, even enabling debug mode can sometimes show you nothing.

This situation could be down to various factors, a broken theme or plugin, and/or exhausted memory. Check with your hosting provider to see if the problem stems from there, such as a poorly configured server, if not, here are a few solutions to the situation.

In most cases of the ‘white screen of death’ you will not have access to your WordPress dashboard, so you might have to go in via FTP. You can do this by navigating to wp-content/themes or wp-content/plugins, using your favourite client.

Broken theme

De-activate your current theme and see if that fixes the problem, if it does, delete or update the theme. You can also check the theme’s ‘function.php’ file to see if there are any coding issues causing the problem.

Broken plugin

Go to your plugins, and de-activate them all, if your website comes back to life then slowly activate one plugin at a time to find the culprit. Update or delete the offending plugin, and maybe let the author know about the problem, the good ones are always glad to help.

Out of memory

You may of reached your memory limit, although the memory is defined by your server, it may be different to your wp-config.php file.

Contact your hosting provider about your memory limit.

To change your wp-config.php file, use a text editor and add this line of code –define(‘WP_MEMORY_LIMIT’, ‘128M’);
This will increase your WordPress site memory to 128mb, but make sure that the memory size is not greater than your server side memory, if not, then you can even increase it to more than 128mb.