Saturday, November 29, 2008

Why waste bandwidth of your file host when google provides you infinite bandwidth ?

I just came through  a fantastic method to save your bandwidth and inturn a few bucks.Those of you who might use extensive javascript libraries will see this method very interesting.Whenever you want to use script libraries you might have either used your file hosting or might have used the original source url.But i dont think that referring to the original  source file url [ like the jquery website ] is a better option than using a service like google code provides .

“google code” gives you all the javascript libraries – almost all the popular ones.So you may just include the url they provide in your files in turn saving you immense bandwidth and i dont think they would be much slower than the other original source file url s you might be using .

HERE IS THE LINK :

http://code.google.com/apis/ajaxlibs/documentation/index.html#googleDotLoad

For example , if you need to include the jquery library , use :

<script src="http://www.google.com/jsapi"></script>

<script>
google.load('jquery', '1.2.3')

</script>

                                     [  OR  ]

 

<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js”></script>

0 comments:

 
Copyright 2009 Make Money Blogging Online. Powered by Blogger Blogger Templates designed by Deluxe Templates