Lift JS
Lift JS aims to raise old browers up to the same level as modern browsers. It is
a collection of AMD modules loaded on-demand to shim missing JS features.
Load LiftJS with your favorite AMD loader.
Examples
Here are some code examples to show how to use lift JS with various AMD loaders.
RequireJS
require.config({
deps: ['liftjs'],
packages: [
{
name: 'liftjs',
location: 'lib/liftjs/',
main: 'lift'
}
]
});
require(['main'], callback);
require({ paths: { lib: 'lib/' } }, ['lib/liftjs/lift'], function() {
require(['main', 'other'], callback);
});
CurlJS
curl.config({
preloads: ['liftjs'],
packages: [
{
name: 'liftjs',
path: 'lib/liftjs/',
main: 'lift'
}
]
});
curl(['main', 'other', 'another' ]).then(callback, errorback);
curl({ paths: { lib: 'lib/' } }, ['lib/liftjs/lift']).next(['main'], callback);