Skip to content

Avoid infinite scrolling in viewers #25824

@andrzej-r

Description

@andrzej-r

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.
Nextcloud Files (but also Photos) browsing performance is poor, partly because of use of an infinite scrolling in the view. Infinite scrolling requires extra http+database query and reallocation of the view area every time a user reaches the bottom of the page. While it has some uses for content like blogs or search results, where users are likely to be interested only in the top-most results, that is not applicable to listings of files or photos where the total number of elements to display is known and users are likely to access them in any order.

In addition to performance issues, infinite scrolling also reduces usability, as users cannot quickly move to the bottom of the page or to an estimated point in the middle of the listing (for example if files are sorted alphabetically).

Describe the solution you'd like
I'd like the view to be pre-allocated based on total number of elements to display. This would avoid extra queries and reallocation of the view every page scroll and would work well with the browser scrolling mechanism.

Describe alternatives you've considered
Leaving the current design as is.

Additional context
This reference https://medium.com/google-design/google-photos-45b714dfbed1 may be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions