• Hello all,

    I have a question regarding using JQuery and other scripts. What is the best practice for incorporating the scripts? How about taking the jquery.min.js and adding the other various libraries (Cycle, LightBox, SuckerFish etc) into one file called jquery.base.js? Just trying to get load orders fixed etc.

    I am having one problem. I am using NexGen gallery and it loads an instance of JQuery which does not always get along with everything else. Is there a way to get NexGen to not load JQuery without messing with the plug-in so every update doesn’t destroy the hack? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter misterpatrick67

    (@misterpatrick67)

    Thanks Esmi,

    I had wondered how that worked. But what about the whole combining scripts? Any thoughts there?

    Also, I read through enqueue a bit, but I’m not sure I understand no conflict mode. I’m not quite sure how <?php wp_head(); ?> works though it seems like that’s where the various plug-in scripts are called. So even when I use the “proper” method of loading JQuery, I’ll end up with NextGen loading it as well which will cause havoc with my various Cycle animations etc.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JQuery – best practices’ is closed to new replies.