Skip to content

perf: improve initial loading times#2414

Merged
JammingBen merged 3 commits intomainfrom
perf/improve-initial-loading-times
Apr 27, 2026
Merged

perf: improve initial loading times#2414
JammingBen merged 3 commits intomainfrom
perf/improve-initial-loading-times

Conversation

@JammingBen
Copy link
Copy Markdown
Member

@JammingBen JammingBen commented Apr 21, 2026

This PR mainly does two things to improve loading times, especially on slower network connections:

  • Optimize chunk sizes by splitting the large chunks into smaller ones.
  • Parallelize some requests that were running synchronously before during bootstrap:
    • webfinger discovery
    • design system js assets
    • capabilities
    • user permissions
    • app provider mime types

Tests on my local machine showed reduced loading times with throttled network:

Network Total loading before After Decrease
Fast 4G ~4,1 s ~3,4 s 0.7 s
Slow 4G ~16.4 s ~14 s 2.4 s

closes #2332
closes #2335

Optimizes the chunk sizes by splitting the large chunks
into smaller ones. This lays the groundwork for better
initial page loading times, especially with slower
network connections.
@JammingBen JammingBen self-assigned this Apr 21, 2026
@JammingBen JammingBen force-pushed the perf/improve-initial-loading-times branch from 1f2c217 to aee07b7 Compare April 21, 2026 12:27
),
hasInput: false,
onConfirm: () => loadingService.addTask(() => emptyTrashBin({ space: resources[0] }))
onConfirm: () => emptyTrashBin({ space: resources[0] })
Copy link
Copy Markdown
Member Author

@JammingBen JammingBen Apr 21, 2026

Choose a reason for hiding this comment

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

loadingService is already active for modals. This failed in e2e tests (which is good, I just don't know why now).

@JammingBen JammingBen force-pushed the perf/improve-initial-loading-times branch 19 times, most recently from 15d9fde to 7f7ae0f Compare April 23, 2026 09:03
Parallelize some requests during bootstraps that
were loaded synchronously before. This speeds up
initial loading times.

Affected requests:

- webfinger discovery
- design system js assets
- capabilities
- user permissions
- app provider mime types
@JammingBen JammingBen force-pushed the perf/improve-initial-loading-times branch from 7f7ae0f to f7ca678 Compare April 23, 2026 09:29
@JammingBen JammingBen marked this pull request as ready for review April 23, 2026 09:48
Copy link
Copy Markdown
Member

@AlexAndBear AlexAndBear left a comment

Choose a reason for hiding this comment

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

👍

@JammingBen JammingBen merged commit b83fe68 into main Apr 27, 2026
29 checks passed
@JammingBen JammingBen deleted the perf/improve-initial-loading-times branch April 27, 2026 08:09
@openclouders openclouders mentioned this pull request Apr 27, 2026
1 task
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.

Optimize initial loading times Optimize chunk sizes

2 participants