• Hi,

    I’m trying to work out how to “remove” references to jQuery in my theme (appart from the part I’ve hard-coded into my template, as that is used on ALL the pages for the menu system).

    At the moment I have:

    <script type=’text/javascript’ src=’https://webdesign2.ultra-cdn.com/wp-includes/js/jquery/jquery.js?ver=1.6.1′&gt;

    ..and also:

    <script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js”></script&gt;

    The 2nd one if the hard-coded one into the template file, and the other one I think is coming from the “WP Lightbox” plugin.

    Is there a way I can tell the script NOT to include jquery.js at all from the included JS files, and simply leave it for me to include it in the templates myself? At the moment we are calling 2 versions (I wanna use the google API version as its almost half the size of the other one that comes with WP, and also its on a better CDN system which makes it qicker to download).

    You can see what I mean with it here:

    https://www.mywebsitedesignersblog.com/

    Testing with GTMetrix shows:

    The Google CDN version: 19.3kb
    Wordpress’s version of jQuery: 36.2kb

    Obviously I don’t wanna be calling 2 versions of jQuery, as thats just a waste of resources ??

    TIA!

    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stop jQuery being called 2 times?’ is closed to new replies.