Forums

JQuery - best practices (3 posts)

  1. misterpatrick67
    Member
    Posted 1 year ago #

    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!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  3. misterpatrick67
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags