Load jQuery from a CDN

By default jQuery is loaded internally, but you can also load it from a CDN.

Add the following lines to the functions.php:

// Making jQuery to load from Google Library
function replace_jquery()
    if (!is_admin()) {
        // comment out the next two lines to load the local copy of jQuery
        wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', false, '1.11.3');
Last update: Tue, 13 Sep 2022 14:32:15