Socket
Book a DemoInstallSign in
Socket

rangeslider.js-mini

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rangeslider.js-mini

Simple, small(er) and fast JavaScript/jQuery polyfill for the HTML5 slider element

0.2.3
latest
Source
npmnpm
Version published
Maintainers
2
Created
Source

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');

Keywords

input

FAQs

Package last updated on 19 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.