WordPress.org

Ready to get started?Download WordPress

Forums

How to stop plugins loading multiple copies of jquery (3 posts)

  1. matt-tyas
    Member
    Posted 2 years ago #

    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!

  2. 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.

  3. rfair404
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags