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 gf on Xamarin forms - Stop/Cancel back button event
16 Oct 2018, 17:32 PM
By AEndumpbub on Reducing Umbraco memory usage by enabling 32-bit applications
13 Oct 2018, 07:04 AM
By nseo-sw.men on MVC forms in Umbraco
12 Oct 2018, 11:30 AM
By JM on Solved: You need to use a Theme.AppCompat theme (or descendant) with this activity
10 Oct 2018, 13:36 PM
By praveen on Xamarin Forms - Working with threads
5 Oct 2018, 12:05 PM
By Jasonced on MVC forms in Umbraco
27 Sep 2018, 05:41 AM
By Евгения on MVC forms in Umbraco
27 Sep 2018, 02:47 AM
By Wokeq62 on Using SQL DataTables to speed up database performance
25 Sep 2018, 17:28 PM
Categories
App Development
Event
Game Development
Mapping
Modelling
Programming
Review
Robotics
Tutorial
Web Development