Higher levels of abstraction - Quite often it is the case that development requires implementations of features that are quite popular in the industry. Auto-completion, AJAX handling, graphics and user interface elements are some examples of areas where libraries can be a big boon. Most efforts can then be focused on customization.
Optionally, many libraries are available from content delivery networks (CDN) such as cdnjs, Google Hosted Libraries, jsDelivr and Microsoft Ajax Content Delivery Network. You can find more of these and comparisons between them at cdnperf.
To include a library in your application you simply add a
<script> element to your
<head> element with the
src attribute referencing the URL or path to the library’s source. Below, you see two examples on how to load the jQuery library, one from jsDelivr and one from a local path.
From CDN (jsDelivr):
From a local path:
|ajile||Modules||ajile is an open-source browser module that enables namespacing, dependency-management, and on-demand loading of cross-domain, local, and inline scripts.|
|AngularJS||Framework||AngularJS is a tool set for building the framework most suited to your application development. It is fully extensible and works well with other libraries. Every feature can be modified or replaced to suit your unique development workflow and feature needs.|
|Backbone||Framework||Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.|
|FabricJS||Graphics||Fabric is a powerful graphics library that makes working with HTML5 canvas a breeze. It provides a missing object model for canvas, as well as an SVG parser, layer of interactivity, event system, and a whole suite of other indispensable tools (text abstractions, gradients and patterns, image filters, flipping, clipping, animation, free drawing, canvas serialization, and more).|
|Meteor||Complete Stack||Meteor is a full-stack web application development environment. It runs on Node.js and functionalities can be extended by modules called Meteorites.|