mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 05:47:50 -05:00
[GH-ISSUE #22611] feat: Upgrade Svelte from v5.42.2 to v5.53.10 to reduce DOM fragmentation and improve rendering performance #123075
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?
Originally created by @ShirasawaSama on GitHub (Mar 12, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22611
Check Existing Issues
Verify Feature Scope
Problem Description
The current version of Svelte used in Open WebUI is v5.42.2, which is significantly behind the latest release (v5.53.10). This outdated version has a known issue where the rendering process produces a large number of fragment DOM nodes (e.g., excessive
Commentnodes andDocumentFragmentwrappers used internally by Svelte's reconciliation logic). These fragment nodes substantially increase the total node count in the DOM tree, which leads to:The Svelte team has addressed these issues in subsequent releases with significant improvements to the internal DOM reconciliation and template instantiation mechanisms, drastically reducing the number of unnecessary fragment nodes generated during rendering.
Desired Solution you'd like
Upgrade Svelte from v5.42.2 to v5.53.10 (the latest stable release). Based on benchmarking and profiling against the newer version, this upgrade is expected to deliver:
This should be a relatively low-risk upgrade as Svelte v5.53.10 is a minor/patch update within the same major version, and the API surface remains backward-compatible. A thorough regression test of key UI flows (chat rendering, model switching, settings panels, etc.) should be sufficient to validate the upgrade.
New version:
Alternatives Considered
No response
Additional Context
No response
@Classic298 commented on GitHub (Mar 12, 2026):
@danilowanner
@Classic298 commented on GitHub (Mar 12, 2026):
much in favor
@Classic298 commented on GitHub (Mar 15, 2026):
This might be the related commit
bdb7d48cffWaiting on tim to close this, let's check if there are any side effects on this
@tjbck commented on GitHub (Mar 16, 2026):
Should be addressed in dev.
@danilowanner commented on GitHub (Mar 20, 2026):
Thanks!