Saving Bandwidth Made Easy: Google Data JavaScript Packaging

September 29, 2008, 7:04 pm (http://googledataapis.blogspot.com/)

27

span class="byline-author"Posted by Trevor Johns, Google Data APIs Team/spanbr /br /At Google, we believe it’s important to conserve limited resources, whether it’s the environment or bandwidth. While it won’t help with global warming (we have a href="http://www.google.org/"other projects/a for that), our new support for packages in our a href="http://code.google.com/apis/gdata/client-js.html"Google Data JavaScript client library/a can help with the bandwidth.br /br /This feature allows you to specify precisely which Google Data services you’ll be using in your applications. We then use this information to send just the library code you need, leaving out all the rest. Less code sent across the wire means faster page loads for your applications. Faster page loads mean happier users.br /br /For comparison, the current version of the JavaScript client library is 47 KB in size. If you request only the Blogger package, that library shrinks to 37 KB, a 21% reduction.br /br /To take advantage of this, just add a packages argument when you’re loading the client library. For example, the following statement would request only the code necessary for working with the Blogger and Contacts APIs:br /br /pregoogle.load("gdata", "1.x", { packages : ["blogger", "contacts"] });/prebr /If you don’t specify a packages argument, you’ll receive all available packages, just as before. This means that your old code will continue to work just as it is.br /br /If you have any questions, feel free to drop by our a href="http://code.google.com/apis/gdata/faq.html#discussion_groups"discussion groups/a where you’ll find other developers ready to lend a helping hand.div class="feedflare" a href="http://feeds.feedburner.com/~f/OfficialGoogleDataApisBlog?a=mQljL"img src="http://feeds.feedburner.com/~f/OfficialGoogleDataApisBlog?i=mQljL" border="0"/img/a a href="http://feeds.feedburner.com/~f/OfficialGoogleDataApisBlog?a=wwUll"img src="http://feeds.feedburner.com/~f/OfficialGoogleDataApisBlog?i=wwUll" border="0"/img/a /divimg src="http://feeds.feedburner.com/~r/OfficialGoogleDataApisBlog/~4/406700176" height="1" width="1"/

 

Tags: google, http, /br, //feeds, packages

  launch permalink  share  

Recommended News Content

Recommended Groups

Gabbr - General Discussion  120 members

Recommended Bookmarks

Inclusive Vacation PackagesTravel Agent  0 comments

Free Advertising with Google Adsense Revenue Sharing  0 comments

Google Adsense Referral News  0 comments

The CRM Handbook: A Business Guide ... - Google Book Search  0 comments

Ultimate Wealth Package  0 comments

Comments

No comments. Be the first to comment.

 

You must be logged in to post a comment.

Learn More
About Gabbr

Pixelate Project

Learn more about the Pixelate Project

Questions?
Contact Us

Community

Get acquainted with some of our most recent members.