mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #17222] [MERGED] feat: dynamically load PDFjs to accelerate initial page loading speed #39990
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17222
Author: @ShirasawaSama
Created: 9/5/2025
Status: ✅ Merged
Merged: 9/5/2025
Merged by: @tjbck
Base:
dev← Head:patch-14📝 Commits (1)
49e045efeat: dynamically load pdfjs📊 Changes
2 files changed (+20 additions, -14 deletions)
View changed files
📝
src/lib/components/chat/MessageInput.svelte(+1 -5)📝
src/lib/utils/index.ts(+19 -9)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Currently, although PDF.js is only utilised when uploading PDF files during temporary chats, dynamic loading is not employed.
The complete PDF.js script now exceeds 3MB, resulting in an exceptionally large JavaScript file for the page and consequently slow loading times.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.