Is there any CDN sources for backbone.js and also underscore.js to use in our projects?
Asked
Active
Viewed 5.4k times
2 Answers
250
http://www.cdnjs.com hosts a lot of less popular JavaScript frameworks, including:
backbone.js:
//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js
(HTTP | HTTPS)underscore.js:
//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js
(HTTP | HTTPS)
For convenience, here are the script tags:
Backbone.js<script type="text/javascript"
src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
Underscore.js
<script
src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>

jpaugh
- 6,634
- 4
- 38
- 90

Tomasz Nurkiewicz
- 334,321
- 69
- 703
- 674
-
11how much trusted it is for prod environments..? – sandeep talabathula Feb 25 '13 at 12:29
-
3digg.com uses cdnjs. Check out some more cdnjs stats and users: http://w3techs.com/technologies/details/cd-cdnjs/all/all – Ryan Kirkman May 08 '13 at 05:10
-
10Less popular? I've heard there are some people who use backbone and underscore. – ericsoco Jul 18 '13 at 08:08
-
5@ericsoco I think he means "less popular than jQuery" – Guilherme Garnier Jul 24 '13 at 16:15
-
Tbh cloudflare seems to have its periods of down time atleast in europe – Simon Dragsbæk Feb 26 '14 at 12:36
-
Tried using cdnjs and got horrible downs from Europe. – Max Favilli Feb 03 '15 at 18:34
-
I would say cdnjs has the faster performance and better uptime right now. You can double check the historical stats here https://www.cdnperf.com/ – Ricardo Polo Jaramillo Apr 12 '16 at 05:47
14
http://www.jsdelivr.com/ is also a good alternative for less popular frameworks
- backbone.js: //cdn.jsdelivr.net/backbonejs/0.9.10/backbone-min.js
- underscore.js: //cdn.jsdelivr.net/underscorejs/1.4.3/underscore-min.js
Also in most cases it is a good idea to omit the protocol in the URL for JavaScript source.
More on http://www.paulirish.com/2010/the-protocol-relative-url/

Mite Mitreski
- 3,596
- 3
- 29
- 39
-
-
2@Bepetersn it will work on HTTP and HTTPS site. Basically the newer browser will not include non HTTPS content on an HTTPS page, this simplifies the job, but does not work on IE6 I think – Mite Mitreski Dec 06 '13 at 01:19
-
NB: though according to best practices the protocol should be omitted, this can cause issues (not just browser support); e.g. https://twitter.com/mindmillmedia/status/402550801328922625. – JohnLBevan Dec 20 '13 at 00:04
-
2jsdelivr is the worst cdn ever, do not use in production, you have been warned – Pykler Mar 02 '14 at 19:59
-
3@Pykler Can you tell me why? In asia/pacific, jsDeliver is the fastest public cdn. – ceram1 Apr 14 '14 at 02:38