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 Alderton on Replacing the Xamarin Header/Navigation bar with a custom view/template
17 Jan 2018, 15:30 PM
By Luke Alderton on My experience at Umbraco UK Festival 2017
17 Jan 2018, 14:51 PM
By Victor La Fortuna on Solved: 'Debug/ibTool/LaunchScreen.storyboardc/Info.plist does not exist' Xamarin
10 Jan 2018, 14:32 PM
By Jose Luis on Replacing the Xamarin Header/Navigation bar with a custom view/template
7 Jan 2018, 11:06 AM
By Chris Howarth on My experience at Umbraco UK Festival 2017
28 Dec 2017, 10:32 AM
By Luke Alderton on Xamarin forms - Stop/Cancel back button event
20 Dec 2017, 05:49 AM
By Antony on Xamarin forms - Stop/Cancel back button event
18 Dec 2017, 11:19 AM
By dipbleds on Raspberry Pi - Bluetooth using Bluecove on Raspbian
12 Dec 2017, 21:29 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development