backbone.js & underscore.js CDN recommendation?

backbone.jsCdnunderscore.js

backbone.js Problem Overview


Is there any CDN sources for backbone.js and also underscore.js to use in our projects?

backbone.js Solutions


Solution 1 - backbone.js

http://www.cdnjs.com hosts a lot of less popular JavaScript frameworks, including:

  • [tag:backbone.js]: //cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js (HTTP | HTTPS)

  • [tag: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>

Solution 2 - backbone.js

http://www.jsdelivr.com/ is also a good alternative for less popular frameworks

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/

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionward87View Question on Stackoverflow
Solution 1 - backbone.jsTomasz NurkiewiczView Answer on Stackoverflow
Solution 2 - backbone.jsMite MitreskiView Answer on Stackoverflow