CodeIgniter Forums
Google Load 1.0: Google AJAX Libraries loader Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Google Load 1.0: Google AJAX Libraries loader Library (/showthread.php?tid=31238)



Google Load 1.0: Google AJAX Libraries loader Library - El Forum - 06-10-2010

[eluser]Higher Ground Studio[/eluser]
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!


Google Load 1.0: Google AJAX Libraries loader Library - El Forum - 06-16-2010

[eluser]Ener1[/eluser]
Nice add, thanks a lot man


Google Load 1.0: Google AJAX Libraries loader Library - El Forum - 06-16-2010

[eluser]Higher Ground Studio[/eluser]
I Am working on adding the google CDN hosted Jquery UI themes to the library. This will make you be able to use this for the Jquery UI css framework also!


Google Load 1.0: Google AJAX Libraries loader Library - El Forum - 11-12-2010

[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');



Google Load 1.0: Google AJAX Libraries loader Library - El Forum - 11-12-2010

[eluser]Sire[/eluser]
Very useful, surprised it hadn't already been done! Thank you!