• I wrote a jquery script on my page without using wp_enqueue_script(‘jquery’) to load the jquery library and it worked. How is this possible? What then is the use of wp_enqueue_script(‘jquery’)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Do you have any plugins that are using jQuery?

    I can’t use jQuery without the above, so it may be that a plugin is already loading jQuery for you.

    Link to the page perhaps?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    wp_enqueue_script(‘jquery’) basically just says you need jQuery on the page. If jQuery is not already being loaded by something else, then it gets loaded. If jQuery is already being loaded by something else, it does nothing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘loading the jquery library to the page’ is closed to new replies.