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

Tags: Google,Script,Hosted,Library

Luke Alderton

Comments

Post a comment
Sit tight...
We're adding your comment.
Thank you.
Your comment has been added.
There's been a problem.
Please try again later.
Share with
Tags
Latest Comments
By Luke on Auto/Custom height on Xamarin Forms WebView for Android and iOS
15 Jun 2018, 09:43 AM
By vikki on Auto/Custom height on Xamarin Forms WebView for Android and iOS
14 Jun 2018, 13:35 PM
By jimbo on JQuery Unobtrusive Validation for dynamically created elements
13 Jun 2018, 17:13 PM
By ScottKem on MVC forms in Umbraco
8 Jun 2018, 10:29 AM
By Alaa on java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
3 Jun 2018, 20:16 PM
By Robertfrold on MVC forms in Umbraco
3 Jun 2018, 12:11 PM
By Kiran Lad on How to add a Xamarin Forms Loading Screen/Overlay
29 May 2018, 06:39 AM
By jake on Xamarin forms - Stop/Cancel back button event
26 May 2018, 15:24 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development