Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

rangeslider.js-mini

0.2.3 • Public • Published

rangeslider.js

This is a fork of rangeslider.js, dropping its dependency on jQuery and nearly halving the filesize of the plugin itself.

Minified and gzipped sizes:

Before: 2468 bytes (rangeslider) + 37298 bytes (jquery) = 39766 bytes
After:  1641 bytes (rangeslider)                        = 1641 bytes

Saved 38125 bytes (96%).

Usage is similar, but slightly different. Same options and everything, but rather than calling $(el).rangeslider, it looks like this:

var slider = rangeslider(element, {
    polyfill: false
    // ...
});
 
slider.update(true); // instead of $(el).rangeslider('update', true);
 
slider.destroy(); // instead of $(el).rangeslider('destroy');

Install

npm i rangeslider.js-mini

DownloadsWeekly Downloads

2

Version

0.2.3

License

MIT

Last publish

Collaborators

  • avatar
  • avatar