We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33657
    • 128 Posts
    So my template loads JQUERY in the actual template in the <head>

    Next, I want to run wayfinder and I am using the jquery version.

    Next, I want to use AJAXSearch and I am using the Jquery version.

    now I understand that I can go into the configs and change the paths so they all refrence the same JQUERY, which I am doing, but is there a way to actually make them jquery but NOT call the jquery library 3 seperate times?

    when I look at my source code I see .jquery-latest.js in the head (my doing) then I see the wayfinder calling it, then I see the ajax search calling it. Everything works beautifully but i’d rather have a very very clean site and not continuously call the same library for every new snippet I load in. Is there a way to either remove it from the plugins themselves or what do you guys normally do to compensate for this type of stuff?

      • 33657
      • 128 Posts
      I went into

      /assets/snippets/ajaxSearch/configs/default.config.php


      and just deleted the path and some jquery stuff and it still seems to work and now doesn’t have jquery loading twice in the template.

      still ask the question though, how do you guys do it, is there a global js folder regardless of templates, etc.. cause i know that now if i change templates to something without jquery in my template head, obviously this ajaxSearch will fail.