Small add-on to Patrick Schriner to include all js-files in one go. It will also make sure selected files are loaded first.
You can add a line (forOnTop) to force your jQuery to be included on top. Else javascript more often seems to be included last to speed up the load of the page. In this example I include several files. Specific for the jQuery is the jQuery[forceOnTop] to ... well, selv explaining I guess.
includeJS {
1 = fileadmin/templates/website/scripts/javascript.js
2 = EXT:ogelementslide/res/jquery.easing.1.3.js
3 = EXT:ogelementslide/res/jquery.easing.compatibility.js
4 = EXT:ogelementslide/res/jquery.bxSlider.min.js
jquery = http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js
jquery.external = 1
jquery.forceOnTop = 1
}
Please notice that the numbers 1-4 and jQuery are equivalent. I could have written 5 instead of jQuery. In that case it would have been:
includeJS {
1 = fileadmin/templates/website/scripts/javascript.js
2 = EXT:ogelementslide/res/jquery.easing.1.3.js
3 = EXT:ogelementslide/res/jquery.easing.compatibility.js
4 = EXT:ogelementslide/res/jquery.bxSlider.min.js
5 = http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js
5.external = 1
5.forceOnTop = 1
}
BR. Anders