mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 14:17:28 +00:00
Use morphdom to make chat streaming 1902381098231% faster (#6653)
This commit is contained in:
parent
02db4b0d06
commit
3a722a36c8
4 changed files with 26 additions and 5 deletions
|
|
@ -147,10 +147,9 @@ const observer = new MutationObserver(function(mutations) {
|
|||
|
||||
doSyntaxHighlighting();
|
||||
|
||||
if(!isScrolled) {
|
||||
if (!isScrolled && targetElement.scrollTop !== targetElement.scrollHeight) {
|
||||
targetElement.scrollTop = targetElement.scrollHeight;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// Configure the observer to watch for changes in the subtree and attributes
|
||||
|
|
|
|||
1
js/morphdom/morphdom-umd.min.js
vendored
Normal file
1
js/morphdom/morphdom-umd.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue