mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #21881] [CLOSED] perf: remove per-word fade transitions from TextToken during streaming #129975
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/21881
Author: @Classic298
Created: 2/25/2026
Status: ❌ Closed
Base:
dev← Head:perf/remove-texttoken-fade📝 Commits (1)
8809084perf: remove per-word fade transitions from TextToken during streaming📊 Changes
1 file changed (+2 additions, -14 deletions)
View changed files
📝
src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens/TextToken.svelte(+2 -14)📄 Description
During streaming, TextToken split text by spaces and wrapped each word in a span with a 100ms CSS fade transition. This created O(words) DOM elements with active transitions that were all destroyed and recreated on every content update. Replace with direct raw text rendering, eliminating unnecessary DOM overhead during streaming.
In other words: this removes the subtle per-word fade effect when streaming in the words
@tjbck alternative: refactor to fade in per token or per batched token to at least have minor perf improvement
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.