Repository navigation
0.4.0: never a frozen photo
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) andnonebuilt in;frostandliquidfromfrankaa/loading; your own shader ({ fragment, uniforms }, registered withregisterLoading) 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-busyand a "Loading photo N" announcement. - A photo that doesn't load shows "This photo didn't load" with Retry, in either renderer;
onErroris unchanged. - Only the latest move changes the picture; filmstrip jumps load that photo and its neighbours at once.
- New hooks
onLoadStartandonLoadEnd(frankaa:load-start,frankaa:load-end), labelsloading,failed,retry, andcheckLoading. - Site: a Loading section with a switchable slow connection and failure.
check:loadingcovers 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.