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

Loading a large gallery #426

Open
devamchakrabarty opened this issue Nov 16, 2020 · 1 comment
Open

Loading a large gallery #426

devamchakrabarty opened this issue Nov 16, 2020 · 1 comment

Comments

@devamchakrabarty
Copy link

Hi, when we try to load the viewer with 100 or more images, we have noticed

  • the first image waits for quite a while before being shown. We think it waits until all 100 GET requests to the server have completed.
  • clicking a thumbnail sends 2 GET requests to the server but the thumbnail image is not refreshed with the latest image returned by the server.
  • If we call update on the viewer it refreshes all the images in the gallery and therefore takes quite some time again.

So, our requests / questions are

  • Is there an efficient way of lazy loading many images in a gallery?
  • Can the first image be shown immediately while the other images are still loading?
  • Can the thumbnails be refreshed without having to re-render the entire viewer?
@fengyuanchen
Copy link
Owner

The Viewer.js may not be a good solution for a big list of images currently. A lot of improvements should be done in this case.

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

No branches or pull requests

2 participants