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

Lazy load *all* tabs to fix slowness #36

Open
haydenmccormick opened this issue Jun 6, 2024 · 1 comment
Open

Lazy load *all* tabs to fix slowness #36

haydenmccormick opened this issue Jun 6, 2024 · 1 comment
Assignees
Labels
✨N New feature or request

Comments

@haydenmccormick
Copy link
Collaborator

New Feature Summary

When opening certain tabs on larger MMIF files (esp. JSTree), it often imposes a huge burden on the client browser and sometimes freezes it for several seconds. The page often also takes a very long time to load, since it is rendering out each tab at load-time.
Instead, each tab should be dynamically loaded in when it is clicked. This would be trivially fast for smaller tabs, and would save a lot of initial load time for more complex ones.

Related

No response

Alternatives

No response

Additional context

The OCR tab is already dynamically loaded in (to save space when storing temp thumbnail files), so other tabs' lazy loading behavior should be an extension of that.

@haydenmccormick haydenmccormick added the ✨N New feature or request label Jun 6, 2024
@haydenmccormick haydenmccormick self-assigned this Jun 6, 2024
@clams-bot clams-bot added this to infra Jun 6, 2024
@github-project-automation github-project-automation bot moved this to Todo in infra Jun 6, 2024
@haydenmccormick
Copy link
Collaborator Author

As an additional benefit, this would also allow the page to load even if a single tab fails to render (for example, in its current form the page will load even if OCR thumbnails can't be generated).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨N New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant