A guide to hosted libraries
Are you hosting jquery or code like it from your own website? If you are then why? Why not take the free benifit of having that code hosted for you because if you did then you'd be reducing server load and bandwidth usage. The below is an example that you shouldn't be doing, it's a huge waste of resources.
<script type="text/javascript" src="/scripts/jquery.js">
You should instead be doing this:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
You can find a complete listing of all hosted libraries on google here:
https://developers.google.com/speed/libraries/devguide
Make sure you take advantage of it because it'll save you a lot in the long run by reducing server load, badwidth used and storage space.
Published at 5 Apr 2013, 23:02 PM
Tags: Google,Script,Hosted,Library