Size, and what is not there yet

What each part costs in the bundle of who imports it. And what the library does not do, said as plainly as what it does.

Size

Gzipped, in the bundle of who imports it, from npm run size. A KB is 1024 bytes, as in the budgets that the build holds every part to:

PartSize
Core4.8 KB
A plugin0.3 to 1 KB
gpuslider/full: the core with all its options7.2 KB
<Slider> and <Slide> for React, or the hook alone0.6 KB, 0.1 KB
canvas(), which chooses the layer0.4 KB
hit(), which says what slide is seen at a point1.0 KB
Canvas layer of WebGPU9.5 KB
Canvas layer of WebGL 27.8 KB
The post pass, for an effect over the whole canvas2.3 KB with WebGL, 2.8 KB with WebGPU
An effect0.2 to 0.8 KB
A transition0.2 to 0.8 KB
Lightbox2.2 KB
style.css, lightbox.css0.7 KB, 0.8 KB
loading.css0.4 KB

A visitor loads one of the two layers. dist/ has the same for pages without a bundler, as modules that share what they have in common, with the shaders made small. npm run test:dist runs the tests with them.

Not yet

  • A file for <script> without type="module".
  • Slide content is HTML and is not distorted with the image.
  • Cross-origin media needs CORS headers and crossorigin on the element; without them the page draws that slide.
  • WebGPU in Firefox is not tested: the Firefox of the tests has no GPU to give. There canvas() takes WebGL.
  • Videos on WebGPU are copied into a texture on every frame, as on WebGL. WebGPU can draw them without a copy, which is not used yet.