feat(web): lazy load library and server statistics#26406
Merged
Conversation
018913a to
e2d3d53
Compare
e2d3d53 to
6982987
Compare
web/src/lib/components/server-statistics/ServerStatisticsCard.svelte
Outdated
Show resolved
Hide resolved
Collaborator
Author
|
Thanks for the review @danieldietzler , I think I made it much better now |
f3daacf to
024fde9
Compare
uhthomas
reviewed
Feb 25, 2026
uhthomas
reviewed
Feb 25, 2026
uhthomas
reviewed
Feb 25, 2026
9903a77 to
b9fc86b
Compare
8888166 to
b3f5707
Compare
9511b75 to
2ddf85c
Compare
2ddf85c to
9663eec
Compare
9663eec to
c65bc87
Compare
…h-app/immich into feat/library-offline-stats
web/src/lib/components/server-statistics/ServerStatisticsCard.svelte
Outdated
Show resolved
Hide resolved
web/src/lib/components/server-statistics/ServerStatisticsCard.svelte
Outdated
Show resolved
Hide resolved
web/src/lib/components/server-statistics/ServerStatisticsPanel.svelte
Outdated
Show resolved
Hide resolved
web/src/lib/components/server-statistics/ServerStatisticsPanel.svelte
Outdated
Show resolved
Hide resolved
…/library-offline-stats
Member
danieldietzler
left a comment
There was a problem hiding this comment.
This looks a lot better now! Haven't actually tested it yet
…/library-offline-stats
99414cb to
b3a0572
Compare
danieldietzler
approved these changes
Mar 26, 2026
Member
danieldietzler
left a comment
There was a problem hiding this comment.
Nice! Sorry for the lengthy back and forth!
jrasm91
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When there are a few 100k assets in an external library, the server stats, library list, and library view all load very slowly since they wait for the library statistics to load. In the future we'll speedup that API call but I also think it should lazy load those stats, making the page load immediately. Skeleton loaders and shimmer effects have been added where necessary.
An illustration of the loading view:
Screen.Recording.2026-02-25.at.14.38.31.mov
Server stats panel:
Screen.Recording.2026-02-27.at.20.15.10.mov