Welcome Guest, Not a member yet? Register   Sign In
Google Load 1.0: Google AJAX Libraries loader Library
#1

[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!
#2

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

[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!
#4

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

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




Theme © iAndrew 2016 - Forum software by © MyBB