Files
open-webui/src/lib/components
Classic298 01aae7268d perf: a running tool call makes the browser re-layout the whole chat on every frame (#34624)
While a tool call is running, its loading spinner sits next to the shimmering status text, and the browser then recalculates the layout of the entire page 60 times a second for as long as the chat waits. That shows up as constant CPU use and slows down other tabs. The spinner animated a part inside its SVG icon, which the browser can only redraw through a fresh layout once anything else on the page is animating; it now rotates the whole icon, which looks the same and stays off the layout path.

Measured with Chrome's performance counters over 10 seconds of an idle chat holding a long answer and one running tool call:

| | Layouts | Layout time |
|---|---|---|
| Before | 600 | ~300 ms |
| After | 0 | 0 ms |
2026-11-18 04:57:13 +04:00
..
2026-11-17 22:33:05 +09:00
2026-10-07 15:40:44 +04:00
2026-11-17 01:25:42 +09:00
2026-11-17 00:31:18 +09:00
2026-11-17 12:33:56 +09:00
2026-11-12 21:22:24 +09:00
2026-11-17 19:31:57 +09:00
2026-11-17 22:37:26 +09:00
2026-11-17 00:47:42 +09:00
2026-11-12 21:22:24 +09:00
2026-11-18 01:13:09 +09:00
2026-11-13 17:36:00 +09:00
2026-07-14 04:15:20 -04:00
2026-11-13 17:36:00 +09:00
2026-11-14 00:45:43 +09:00
2026-11-07 21:23:21 +09:00
2026-11-03 17:36:03 +09:00