You can install T3 on your web page or application in a few different ways.
You can always download the latest version of T3 from our GitHub repository. The
dist directory contains the latest files you’ll need to use T3:
t3.js- Latest unminified version of T3. Supports IE9+
t3.min.js- Minified version of t3.js
t3-jquery.js- Latest unminified version of T3 - Supports IE8+ with jQuery
t3-jquery.min.js- Minified version of t3-jquery.js
For development, we recommend downloading
t3.js while for production
t3.min.js is more appropriate to reduce the file size.
You can download T3 using npm:
This installs T3 into
node_modules/t3js. The package includes the
dist directory from the GitHub repository, so you can include T3 in your page like this:
Of course, you can also copy the files out of the npm package into another folder.
Note: T3 is designed to be used only in the browser, and as such, doesn’t expose a CommonJS module for Node.js/io.js.
You can also include T3 directly from a CDN by using RawGit. You can include a specific version of T3 by including the version number in the URL. For example. to use version 1.0.2, you can use the following:
For development purposes, you can also link directly to the latest published version. This is not recommended in production because the contents of this file changes each time a new release is pushed:
Note: We highly recommend using a specific version of T3. Linking directly to the master branch means getting updates without notice.
If you’re unsure which installation method is right for you, it’s best to start by downloading the file directly from GitHub and using it as you would any other dependency.