Home > Dev > WordPress Optimization > Speeding Up Page Load Times

Speeding Up Page Load Times

This code will help speed up page load times by disabling emojis and embeds.

remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action('wp_head', 'wp_oembed_add_discovery_links');
remove_action('wp_head', 'wp_oembed_add_host_js');</code>

function dequeue_jquery_migrate($scripts) {
    if (!is_admin()) {
        $scripts-&gt;remove('jquery');
        $scripts-&gt;add('jquery', false, array('jquery-core'), '1.12.4');
    }
}
add_action('wp_default_scripts', 'dequeue_jquery_migrate');
Back