immich icon indicating copy to clipboard operation
immich copied to clipboard

fix(web): image preload and cancelation

Open midzelis opened this issue 1 year ago • 1 comments

This is the beginning of a multi-part set of PRs, each of which will stand on its own, mostly because it will be easier to review, and understand smaller changes, and its generally a best practice.

In this PR, the base functionality for image preload and cancelation is fixed, previously broken in #9684.

Additionally, video loads can also be canceled while they are still being buffered by pausing the video, and clearing the src attribute.

Also, the memory-lane component has been retrofitted to use image-thumbnail instead of bare images. In general, all thumbnails should be loaded via the image-thumbnail (or thumbnail) components.

The main part of this PR is the introduction of an image-manager component - it orchestrates the loading/cancelation of images.

A future PR will ensure that all images are loaded via the image-manager component.

midzelis avatar Sep 18 '24 03:09 midzelis

Just a hunch, this might be related to #11833

C-Otto avatar Oct 09 '24 15:10 C-Otto

Closing for now, will come back to it later with a new PR

zackpollard avatar Mar 03 '25 15:03 zackpollard