[eluser]salfordscripteR[/eluser]
[quote author="Higher Ground Studio" date="1276233689"]Introducing Google AJAX Libraries library for Codeigniter!
Today I was working with Google AJAX Libraries api on my website and wanted to make my view cleaner so I made Google Load library to make it super clean!
This is my first library so go easy on my docs and code.
This is a one line code for loading CDN hosted, compressed javascript libraries such as jquery and mootools! This means saved bandwidth for you and the possibility of a cached file on a visitor's browser.
To load one library:
Code:
$this->google_load->load("jquery")
To load multiple libraries:
Code:
$this->google_load->load("jquery,jqueryui,mootools,scriptaculous,yui")
Google load also has a development environment where you can make the output code easier to read and a benchmark function. You can also turn compression of the libraries off.
List of libraries:
jquery
jqueryui
prototype
scriptaculous
mootools
dojo
swfobject
yui
ext-core
chrome-frame
webfont
Google load makes loading javascript libraries super easy and in one line!
If you have any questions just ask![/quote]
Hi im new to CI, im wondering how i would go about adding this to auto load, do i just ad it to the libary bit like eg:
Code:
$autoload['libraries'] = array('database', 'session', 'ajax');