JB Library
JB Library
The JB Library plugin is a system utility we use in our Joomla templates to help ease the pain of javascript conflicts and the common occurrence of having multiple versions of a javascript library loaded into your Joomla site. The jQuery library plugin neatly loads the native version of mootools first and then it loads the latest version of jQuery from the Google api, but only when necessary. Many of our Joomla modules require this library, but you can use it on any Joomla site.
Overview
Why are we using this method for embedding jQuery?
By adding jQuery as a plugin we can add other jQuery plugins and scripts in our modules on the fly. That means that there is no need to add script references to the head of your template and it also means that scripts only get loaded if the module is present.
Examples
Since its a plugin, you can only see the effect by looking at our Strata template's source code to see the inclusion of jQuery or take a peak under the hood of the Joomla bamboo site you are on and view its source.
Dependancies
Joomla 1.5
Most of our jQuery enabled modules require this plugin to be installed and published.
features
- Easily add jQuery to your site
- Allows you to use a copy of the jQuery library from your site, or to load it from Google
- Strips out extra jQuery library references that other Joomla extensions might load unnecessarily
- Ability to strip any other javascript file that is being loaded on the site
- Option to strip mootools from the output
- Option to replace core mootools file with one of your choice
- Needed by many JB extensions
- Includes an option for Scroll to top button automatically created when the user scrolls down the page.
- Includes an option to use the jQuery Lazyload script for images.
- Includes a browser warning for users using the outdated ie6 browser.
| < Prev | Next > |
|---|
LOOKING FOR SOMETHING?
In other news ...
The Social Network
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ut dictum mi. Curabitur porttitor turpis id erat vestibulum in posuere tortor ultrices. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam fermentum enim in enim egestas gravida.
![]()
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed egestas sem quam. Nulla facilisi. Etiam quis lacus erat, sed fringilla libero. Praesent quis nisi quis libero tristique pellentesque nec at augue. Vestibulum pharetra nibh id diam lobortis iaculis. Suspendisse potenti. Aenean nec neque ut erat gravida varius. Nullam non mi id justo luctus vulputate. Nullam aliquet, tortor sed facilisis molestie, magna neque lacinia libero, nec dignissim felis sapien at felis. Proin molestie, urna at pretium hendrerit, urna lectus consectetur tellus, quis auctor justo est eu nisl.



