Skip to content

Conversation

dagstuan
Copy link
Contributor

@dagstuan dagstuan commented Jul 5, 2025

Refactor the memory viewer to not start the progress bar until the image is done loading. Keep existing behavior for videos.

Fixes #18578
Fixes #19598
Fixes #11727

How Has This Been Tested?

Tested locally in chrome while throttling network speed.

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

Refactor the memory viewer to not start the progress bar until the image
is done loading. Keep existing behavior for videos.
Comment on lines +260 to +261
handlePromiseError(handleAction('resetAndPlay', 'reset'));
handlePromiseError(handleAction('resetAndPlay', 'play'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have changed the first parameter here. Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first parameter is only for logging, previously it was initPlayer[AssetViewOpen] since that was the name of the method it was contained in.

Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jrasm91
Copy link
Member

jrasm91 commented Aug 26, 2025

Fixes #11727

@alextran1502 alextran1502 merged commit fd2b7a3 into immich-app:main Aug 31, 2025
51 checks passed
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.

Start memories countdown only after asset has loaded When opening Immich memories on web, the slideshow timer starts without the images loading
4 participants