[GH-ISSUE #17476] feat: Improve first-screen loading speed and reduce resource loading size. #33830

Closed
opened 2026-04-25 07:43:10 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @ShirasawaSama on GitHub (Sep 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17476

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

The current frontend modules relied upon by OpenWebUI are extremely numerous, resulting in extremely slow initial page load times (exceeding 10 seconds without any caching). This is particularly detrimental for new users.

Desired Solution you'd like

  1. Reduce the volume of static resources loaded on the first screen
  2. Dynamically load certain modules on demand
  3. Remove unnecessary dependencies

Reduce the size of static resources

Result:

4217KB -> 1079KB = -74.41% js size

Image -> Image

####### v0.6.17:

zstd: Image

gzip: Image

####### dev:

zstd: Image

gzip: Image

Reduce the number of requests

Others

Originally created by @ShirasawaSama on GitHub (Sep 16, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17476 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description The current frontend modules relied upon by OpenWebUI are extremely numerous, resulting in extremely slow initial page load times (exceeding 10 seconds without any caching). This is particularly detrimental for new users. ### Desired Solution you'd like 1. Reduce the volume of static resources loaded on the first screen 2. Dynamically load certain modules on demand 3. Remove unnecessary dependencies ### Related issues and PRs: #### Reduce the size of static resources - [x] #17222 (-3.5MB) - [x] #17225, #17229 (-1.3MB) - [x] #17645 (-1.58MB), #17613 (-2.9MB), #17250, #17226 - [x] #17477 (-740KB) - [x] #17479 (-730KB) - [x] #17496 (-630KB) - [x] ~~[Reverted #17715] #17498 (-1MB)~~ - [x] #17499 (-1.9MB) - [x] #17502 (-980KB) - [x] #17503 (-454KB) - [x] #17595 (-470KB) - [x] #17593 (-390KB) ##### Result: 4217KB -> 1079KB = -74.41% js size <img width="178" height="54" alt="Image" src="https://github.com/user-attachments/assets/d92b27bc-7127-4598-94c2-58e889ab8660" /> -> <img width="198" height="48" alt="Image" src="https://github.com/user-attachments/assets/319a43e7-7cb3-416d-ba03-aa5ea3e5277a" /> ####### v0.6.17: zstd: <img width="122" height="48" alt="Image" src="https://github.com/user-attachments/assets/68d5b472-d0d8-40a8-a4cb-8fdd822194f6" /> gzip: <img width="130" height="54" alt="Image" src="https://github.com/user-attachments/assets/19334d1b-e68b-4357-baff-7752e6dbd323" /> ####### dev: zstd: <img width="104" height="34" alt="Image" src="https://github.com/user-attachments/assets/e623764f-2ed4-4fbe-b109-ea83ab463062" /> gzip: <img width="96" height="38" alt="Image" src="https://github.com/user-attachments/assets/0ef25165-4824-4a99-89f9-df7768630a4f" /> #### Reduce the number of requests - [x] #17542 - [x] #17541 - [x] #17555 - [x] #17557 - [x] #17640 - [x] ~~#17649~~ - [x] #17889 - [x] #18179 #### Others - [x] #17559 - [ ] TODO: cache API response in local storage
Author
Owner

@Classic298 commented on GitHub (Sep 16, 2025):

PR was merged: https://github.com/open-webui/open-webui/pull/17477

<!-- gh-comment-id:3299919389 --> @Classic298 commented on GitHub (Sep 16, 2025): PR was merged: https://github.com/open-webui/open-webui/pull/17477
Author
Owner

@ShirasawaSama commented on GitHub (Sep 17, 2025):

PR was merged: #17477

Hello, could you please reopen this issue? This is part of a series of optimizations, and there are still a few remaining tasks to complete.

<!-- gh-comment-id:3301059721 --> @ShirasawaSama commented on GitHub (Sep 17, 2025): > PR was merged: [#17477](https://github.com/open-webui/open-webui/pull/17477) Hello, could you please reopen this issue? This is part of a series of optimizations, and there are still a few remaining tasks to complete.
Author
Owner

@ShirasawaSama commented on GitHub (Sep 17, 2025):

@tjbck Hello, could the downloadPdf method be encapsulated into a generic public function for easier dynamic import?

Image Image
<!-- gh-comment-id:3301671716 --> @ShirasawaSama commented on GitHub (Sep 17, 2025): @tjbck Hello, could the `downloadPdf` method be encapsulated into a generic public function for easier dynamic import? <img width="886" height="548" alt="Image" src="https://github.com/user-attachments/assets/ce71055a-32c8-4a67-a4b7-a102e2497a25" /> <img width="480" height="636" alt="Image" src="https://github.com/user-attachments/assets/55ed8507-f36a-4ef3-9bd4-cfc2061db751" />
Author
Owner

@silentoplayz commented on GitHub (Oct 7, 2025):

Can this be closed?

<!-- gh-comment-id:3376406135 --> @silentoplayz commented on GitHub (Oct 7, 2025): Can this be closed?
Author
Owner

@ShirasawaSama commented on GitHub (Oct 7, 2025):

Can this be closed?

Not yet. I should be submitting one or two more pull requests. I'll close this issue myself once I'm done. Since it's a public holiday in my country, I haven't been very active on GitHub lately.

<!-- gh-comment-id:3376421190 --> @ShirasawaSama commented on GitHub (Oct 7, 2025): > Can this be closed? Not yet. I should be submitting one or two more pull requests. I'll close this issue myself once I'm done. Since it's a public holiday in my country, I haven't been very active on GitHub lately.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#33830