Support » Fixing WordPress » How to stop plugins loading multiple copies of jquery

  • matt-tyas

    (@matt-tyas)


    I think I ‘ve missed something because I’ve never understood how to stop this happening. I am getting the latest version from google, but other plugins load earlier versions. I know full well I should not load more than one copy. What is the correct procedure for stopping this behaviour?

    Thanks in advance as ever!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    I am getting the latest version from google, but other plugins load earlier versions.

    Not all plugins play nicely or do it the right way.

    Give this a read if you haven’t already.

    http://codex.wordpress.org/Function_Reference/wp_enqueue_script

    If you can find the plugins that are loading jQuery without wp_enqueue_script, then you can modify that plugin (or ping the plugin author) and queue up jQuery safely.

    rfair404

    (@rfair404)

    chances are some of your plugins are still adding jquery without using wp_enqueue_script. See if you can disable all plugins then re-enable them one at a time and find out which one(s) is loading jquery the wrong way.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to stop plugins loading multiple copies of jquery’ is closed to new replies.