Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

backbone.js & underscore.js CDN recommendation?

People also ask

Is Backbone JS still used?

Backbone. Backbone has been around for a long time, but it's still under steady and regular development. It's a good choice if you want a flexible JavaScript framework with a simple model for representing data and getting it into views.

What is the use of backbone JS?

BackboneJS is a lightweight JavaScript library that allows to develop and structure the client side applications that run in a web browser. It offers MVC framework which abstracts data into models, DOM into views and bind these two using events.

Is Backbone JS frontend or backend?

Front-End MVC frameworks (Backbone, Angular, etc) all rely on a backend service to provide the data that, say Backbone, would then use as its model. You could have an entire MVC pattern on the backend that accepts requests and spits out some JSON for a frontend MVC framework to use.

What is backbone JS model?

Model contains dynamic data and its logic. It performs various types of action on the data like validation, conversion, computed properties, access control etc. 1. It extends Backbone.


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>

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/