Skip to content

feat(web): lazy load library and server statistics#26406

Merged
jrasm91 merged 9 commits intomainfrom
feat/library-offline-stats
Apr 14, 2026
Merged

feat(web): lazy load library and server statistics#26406
jrasm91 merged 9 commits intomainfrom
feat/library-offline-stats

Conversation

@etnoy
Copy link
Copy Markdown
Collaborator

@etnoy etnoy commented Feb 20, 2026

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

@etnoy etnoy changed the title feat(web,server): library statistics performance and offline count feat(server): library statistics performance and offline count Feb 20, 2026
@etnoy etnoy force-pushed the feat/library-offline-stats branch 2 times, most recently from 018913a to e2d3d53 Compare February 20, 2026 22:54
@etnoy etnoy force-pushed the feat/library-offline-stats branch from e2d3d53 to 6982987 Compare February 20, 2026 23:00
@etnoy etnoy marked this pull request as ready for review February 21, 2026 22:21
@etnoy
Copy link
Copy Markdown
Collaborator Author

etnoy commented Feb 24, 2026

Thanks for the review @danieldietzler , I think I made it much better now

@etnoy etnoy force-pushed the feat/library-offline-stats branch 5 times, most recently from f3daacf to 024fde9 Compare February 25, 2026 13:59
@etnoy etnoy force-pushed the feat/library-offline-stats branch 2 times, most recently from 9903a77 to b9fc86b Compare February 27, 2026 12:22
@etnoy etnoy marked this pull request as draft February 27, 2026 12:23
@etnoy etnoy force-pushed the feat/library-offline-stats branch 4 times, most recently from 8888166 to b3f5707 Compare February 27, 2026 13:17
@etnoy etnoy changed the title feat(server): library statistics performance and offline count feat(web): lazy load library and server statistics Feb 27, 2026
@etnoy etnoy marked this pull request as ready for review February 27, 2026 13:18
@etnoy etnoy requested a review from danieldietzler February 27, 2026 13:19
@etnoy etnoy force-pushed the feat/library-offline-stats branch 8 times, most recently from 9511b75 to 2ddf85c Compare February 27, 2026 20:20
@etnoy etnoy force-pushed the feat/library-offline-stats branch from 2ddf85c to 9663eec Compare February 27, 2026 21:27
@etnoy etnoy force-pushed the feat/library-offline-stats branch from 9663eec to c65bc87 Compare February 27, 2026 21:41
Copy link
Copy Markdown
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a lot better now! Haven't actually tested it yet

@etnoy etnoy force-pushed the feat/library-offline-stats branch from 99414cb to b3a0572 Compare March 24, 2026 13:21
Copy link
Copy Markdown
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Sorry for the lengthy back and forth!

@jrasm91 jrasm91 merged commit 84a1fb2 into main Apr 14, 2026
53 checks passed
@jrasm91 jrasm91 deleted the feat/library-offline-stats branch April 14, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants