npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

blaze-slider

v1.9.3

Published

Blazing Fast Slider For High Performance Web

Downloads

24,620

Readme

Blaze Slider

⚡️ blaze-slider.dev

Blaze slider is a high-performance JavaScript UI library for creating sliders.

The Problem

Existing slider libraries are not designed with performance in mind. They block the main thread for a long time when initializing a slider which results in poor UX and poor FID metric for your website.

They also create layout shifts that negatively impact the UX and CLS metric of your website. These libraries don't provide any idiomatic way to reduce the layout shifts.

The Solution

Blaze slider is built to fix these issues. It can initialize the slider incredibly fast. It initializes the slider 30x faster than the Slick slider, and 15x faster than the Swiper slider.

Blaze Slider allows you to specify the layout configuration via CSS variables which enable slider initialization with zero layout shifts! - so that your slider will look exactly the same before and after javascript runs.

Benchmark

| Rank | Library | Time | Speed | Layout Shift Fixable? | | ---- | --------- | ------- | ------------------ | --------------------- | | 1 | Blaze ⚡️ | 1.4ms | 1x | Yes | | 2 | Keen | 6.3ms | 4.5x slower | Yes - Manually* | | 3 | Embla | 7.5ms | 5.3x slower | Yes - Manually* | | 4 | Glide | 10.0ms | 7.14x slower | Yes - Manually* | | 5 | Flickity | 12.3ms | 8.78x slower | Yes - Manually* | | 6 | Swiper | 28.3ms | 20.2x slower | Yes - Manually* | | 7 | Slick | 49.29ms | 35.2x slower | Yes - Manually* |

Manually* means that the slider library itself does not provide an idiomatic way to fix the layout shift. You have to manually add CSS to fix the layout shifts

Benchmark measures the time taken to create a slider with 10 slides by each slider. Benchmark is measured on Apple M1 Pro CPU with 6X slowdown on Google Chrome 103. The Average of 20 runs is taken.

See Benchmark Repo to see how these libraries are tested

Highlights

  • Fastest Slider Library
  • Packed with Features
  • Zero Layout Shifts
  • Full TypeScript support
  • CSS Media-Query-based Responsive configuration
  • No slide cloning
  • Extremely small bundle size (2kB)

Documentation

You can check out the documentation on the website blaze-slider.dev

The documentation is divided into several sections:

Framework Integrations

Blaze Slider is framework agnostic - it can work with all frameworks, all it requires is the DOM element on which you want to initialize the slider and configuration object. Learn More

Here are some prebuilt integrations:

License

Blaze-slider is MIT licensed.