Skip to main content

Introduction

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 metrics 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.

Highlights ✨

  • The Fastest Slider Library
  • Zero layout shifts by providing a CSS config
  • Tons of features and fully customizable
  • Powerful CSS Media Query-based responsive configuration
  • No slide cloning
  • Full TypeScript support
  • Extremely small bundle size (~2KB)

Blazing Fast Performance 🔥


Speed RankSlider LibraryTime to initializeSpeed Comparison
1 Blaze 2.1 ms 1x
2Glide12.2 ms5.8x slower
3Flickity13.29 ms6.32x slower
4Swiper29.8 ms14.2x slower
5Slick60.0 ms28.5x slower

Benchmark measures the time taken to create a slider with 10 slides by each slider, which is reported in the above table as "Time to initialize" ( all libraries configured with the same configuration, content and style )

Benchmark is measured on Apple M1 Pro CPU with 6X slowdown on Google Chrome 103

See Benchmark Repo to see how these libraries are tested