Skip to content

Preview app: Reasonable preloading #1772

Closed

Description

@kulmann

Initial Checklist

  • I understand this is a user story and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

User Story

  • As a user with many photos in one folder, I want the preview app to cause as little load on the server as possible, so that I don't DOS my server.

User Value

Fast UI, less load on the server.

Acceptance Criteria

  • after loading the current image in high resolution, only pre-load the 2 previous and the 2 next image (photo roll makes precise navigation possible, preloading many images causes too much load on the server)
  • if the user cycles through images in a very fast way, requests for other images should be cancelled again
  • if the user leaves the preview app, the active request for the current image (if it was not finished, yet) should be cancelled. especially important for large images on mobile bandwidth.
  • respect sorting (see Preview app: image sorting #1771)

Activity

  1. moved this from Qualification to Backlog in OpenCloud Team Boardon Jan 6, 2026
  2. added theissue type on Jan 13, 2026
  3. self-assigned this
    on Feb 2, 2026
  4. moved this from Backlog to In Progress in OpenCloud Team Boardon Feb 2, 2026
  5. kulmann commented on Feb 3, 2026

    @kulmann
    MemberAuthor

    After playing around with it @AlexAndBear and I decided that we won't do preloading at all.
    Reasoning:

    • if you cycle through images very fast or on slow bandwidth, the request for the image you stop on and want to see should always be prioritized first, preloading other images should happen after that. We could achieve that with a short debounce on loading images... that brings some complexity which we think isn't worth it
    • preloading on mobile connections is probably not even desired

    We'll do the request cancellation though. That should make sure that the image you navigate to is loaded fast (because no other images will be loaded in between).

    Let's see and observe if this is nice UX then. We can iterate later if we're not happy with it.

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

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions