Elektrine lite

← Feed

@trygve_lie@mastodon.social

Post #1381717

2026-03-31 21:11 UTC

@jaffathecake How would you do that with an avif in a service worker? I can think of a way to do it with other image formats, but not avif. @gundersen

Replies (1)

  • @trygve_lie @gundersen I'd have the image file, up to the first layer, encoded in the hash of the URL. The service worker would intercept the request, and immediately serve the hashed part back to the page, but leave the stream open, meanwhile, it'd make a range request for the rest of the image file, and pipe it into the stream.

    Open ##1381718