Skip to content

0.4.0: never a frozen photo

Choose a tag to compare

@JABClari JABClari released this 15 Nov 13:53
· 2 commits to main since this release
3f6a0d7

A slow photo never holds the lightbox up.

  • Opening and moving happen at once: the lightbox shows the photo's placeholder or thumbnail in its own shape, with a loading material drifting over it, then the photo opens up in place when it lands.
  • Loading materials: film (default) and none built in; frost and liquid from frankaa/loading; your own shader ({ fragment, uniforms }, registered with registerLoading) or your own view ((host, { index, failed, retry }) => cleanup).
  • A small ring after loadingDelay (250 ms by default), so fast photos never show it; aria-busy and a "Loading photo N" announcement.
  • A photo that doesn't load shows "This photo didn't load" with Retry, in either renderer; onError is unchanged.
  • Only the latest move changes the picture; filmstrip jumps load that photo and its neighbours at once.
  • New hooks onLoadStart and onLoadEnd (frankaa:load-start, frankaa:load-end), labels loading, failed, retry, and checkLoading.
  • Site: a Loading section with a switchable slow connection and failure.
  • check:loading covers both renderers: slow, failed and cached opens and moves, rapid jumps, the registry and the site demo.

Sizes (gzipped): lightbox 23.9 kB (was 19.0 kB), frankaa/loading 1.35 kB.