Aaron Saray

open source programmer,
web developer

entrepreneur, author
and musician

My Blog

contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!

Rely on Google for your Javascript?

After reviewing the Google Javascript API project, I am torn. Pro’s and cons below… What do YOU think?

PRO

  • Proper caching done
  • Shared javascript location – no need to redownload if multiple sites use same library
  • Easy to include method, can be as specific as needed for versioning (you can include major, major.minor, etc.)

CON

  • If google goes down, you go down. Well, if caching is done right that doesn’t matter. Plus I’m sure you rely on your host not to go down either…
  • If google ends the service, like they shut down other services, you have to re-architect again.

So, are YOU going to use it?

This entry was posted in javascript, Misc Web Design and tagged , . Bookmark the permalink.

One Response to Rely on Google for your Javascript?

  1. I do use google hosted js for a lot of my sites. The way I see it the pros definitely outweigh the cons. The neatest thing I see about google hosting the js is that when someone comes to your site, in all likelihood the are going to have your library (prototype, jquery, etc) cached already which obviously decreases load time on your site. Since js (in most cases) is just supposed to add to a website, having google go down will not be the end of the world.

    The only true con I see is google ending the service. However, this will not add a ton of work to change. Maybe I should be adding a local copy of prototype to my sites to save time just in case.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>