Files
open-webui/src/lib/components/common
Classic298 bde9278693 fix: chat freezes for seconds when scrolling inside an inline PDF preview (#35452)
Scrolling inside a PDF shown inline in a chat froze the whole page for seconds at a time, on phones and on desktop, and long chats had it worst. The cause was not in the PDF preview. A style rule meant only for the settings pages was active on every page and made the browser redo the styling of a whole chat message each time a piece of content was added to it, which a PDF preview does well over a hundred times per page. That rule only decides whether the mouse pointer turns into a hand over the name of a setting, and it is now written so that it no longer costs anything noticeable outside the settings pages. The settings look and behave as before.

<table>
<tr><th>Long chat with three inline PDFs, scrolling one PDF down and back up</th><th>Before</th><th>After</th></tr>
<tr><td>Time the browser spent redoing styles</td><td>15.1 s</td><td>0.24 s</td></tr>
<tr><td>Longest freeze, desktop</td><td>6.6 s</td><td>0.05 s</td></tr>
<tr><td>Longest freeze, phone sized screen with CPU slowed 4x</td><td>30 s</td><td>0.2 s</td></tr>
<tr><td>Frames per second, desktop</td><td>35</td><td>60</td></tr>
<tr><td>Adding one piece of content to a message</td><td>36 ms</td><td>under 1 ms</td></tr>
</table>

Fixes #35444
2026-12-01 19:58:39 +04:00
..
2026-11-25 02:36:18 +04:00
2026-11-20 14:43:49 +04:00
2026-11-20 14:43:49 +04:00
2026-11-21 13:27:07 +04:00
2026-10-05 09:46:43 +04:00
2026-11-20 14:43:49 +04:00
2026-11-21 13:27:07 +04:00
2026-11-21 13:27:07 +04:00
2026-11-21 13:27:07 +04:00
2026-11-20 14:43:49 +04:00
2026-11-26 00:59:00 +04:00
2026-10-19 05:01:59 +09:00
2026-10-19 05:01:59 +09:00
2026-10-15 13:59:45 +04:00
2026-11-21 19:38:57 +04:00
2026-11-23 15:06:29 +04:00
2026-03-22 22:01:38 -05:00
2026-11-21 13:27:07 +04:00
2026-11-20 14:43:49 +04:00
2026-11-24 21:30:58 +04:00
2025-09-04 02:50:50 +04:00
2026-11-21 13:27:07 +04:00
2026-11-20 14:43:49 +04:00
2026-11-24 19:02:38 +04:00
2026-11-21 13:27:07 +04:00
2026-11-02 08:48:51 +09:00
2026-11-07 13:03:41 +09:00
2026-11-21 13:27:07 +04:00
2026-11-21 13:27:07 +04:00
2026-11-20 14:43:49 +04:00
2025-06-02 23:25:38 +04:00
2026-11-20 14:43:49 +04:00
2024-11-03 03:00:28 -08:00
2026-11-21 13:27:07 +04:00
2026-10-24 08:49:32 +09:00
2026-11-21 13:27:07 +04:00
2026-11-21 13:27:07 +04:00
2026-10-06 21:45:10 +04:00
2026-11-20 14:43:49 +04:00
2026-11-10 15:56:52 +09:00
2026-11-20 14:43:49 +04:00
2026-11-26 16:20:36 +04:00
2026-11-26 01:31:48 +04:00
2026-12-01 02:20:32 +04:00
2026-11-21 13:27:07 +04:00
2026-11-24 21:50:41 +04:00
2026-11-21 13:27:07 +04:00
2026-11-21 13:27:07 +04:00
2026-11-20 14:43:49 +04:00
2026-11-24 20:04:48 +04:00
2026-11-21 13:27:07 +04:00
2026-11-20 14:43:49 +04:00
2026-11-21 13:27:07 +04:00
2026-11-22 17:23:24 +04:00
2026-11-20 14:43:49 +04:00