However there is one key issue that can cause jQuery JavaScript conflicts to occur on your Joomla site. If you have more than one version of the jQuery library loading on the page then your jQuery scripts will stop working. As more and more Joomla extensions use jQuery to implement JavaScript effects, we are seeing more and more conflicts that relate to the library loading more than once on the page.
In some cases the developers are thoughtful and provide a switch to turn jQuery off, while others arent quite so visionary and the user is left to hack the core code of the extension that loads second on the page. This of course presents an issue for the user when they need to update the extension they are using and also presents issues for users that perhaps aren't especially confident with digging through PHP or even HTML.
enter the JB Library plugin ...
To get around this we started implementing the JB library into our Joomla templates at the start of 2009. The JB Library plugin loads the jQuery library into the head of your Joomla site above where templates, modules and components load their respective jQuery scripts. Initially this free Joomla plug in only loaded the jQuery library, but each revision has seen us add a number of useful scripts to the plugin such as an IE6pngfix, lazyload image script or the back to top script. The benefit of the library is that it provides a switchable easy access source for us to load the jQuery library that is compatible with all of our templates and extensions and easy to turn off should the need arise. We also update the plugin to load recent major releases of the Jquery library in the case that your script isnt backwards compatible
What we would like to see from other third party Joomla developers who use jQuery in their extensions is a provision to turn the inclusion of the jQuery library off or if they felt so inclined to start using our JB LIbrary plugin. Im sure that this will not only lead to a reduction in support for their extensions but a reduction of support requests for us too.






Nicholas K. Dionysopoulos Comment Link