Interested in purchasing one of the best wordpress themes in town? check out Cult on themeforest »

I was unaware until recently that Google now offers its own repository for javascript frameworks. It wasn’t until I actually tried this out for myself that I found in most cases my pages loaded faster when I called in jQuery through Google. This you may think Isn’t a smart move, what if Google moves the code URL? well Google have promised the repository will stay fixed for the next 10 years and beyond. so that’s reassurance enough for me.

Clever Thinking

What I was most impressed with however was the forward thinking nature of the repository. For example I recently upgraded my jQuery library to version 1.3, by using Google, however version 1.3 had several bugs in its release, so when version 1.3.1 came out, Google took the initiative to upgrade for me. let me show you what I mean.

This is what a call to a javascript framework looks like, if you call it from Google;
<pre>

http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js

<pre>

of course if you can choose which version you want, and if you want it minified or uncompressed via the relevant directories, and if a user goes from 1 website using the same js framework being called from google, to your website the framework will already be loaded, meaning that your page will load even quicker, pretty nifty I think. why not check it out for yourself, and see if you notice the difference


    About the author

    My name is Philip Beel. I have four years commercial experience in front end web development. My disciplines include XHTML, CSS, PHP, MYSQL, Smarty and javascript. I am also a keen advocate of the jQuery framework.

    Read more posts by


    2 Comments on Speed up youre Javascript Framework Load Times With Google

    1. hpoom

      I’m glad you found this to be fast as I did. Also it will be faster not only because Google’s hosting is faster. It will also be faster because most browsers will only fetch 3 items at a time from each domain, but if you source items for multiple domains then it will fetch more then 3 items at a time.

      « Reply



    Leave a comment


    This pretty much personifies me - http://t.co/glu8rD8j #cycling

    Follow me