Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): image preload and cancelation #12765

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

midzelis
Copy link
Contributor

@midzelis midzelis commented Sep 18, 2024

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 midzelis requested a review from jrasm91 September 18, 2024 23:05
@C-Otto
Copy link
Contributor

C-Otto commented Oct 9, 2024

Just a hunch, this might be related to #11833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants