Files
open-webui/src/lib/components/chat/Messages
Classic298 7ea6afdf95 perf: cache KaTeX module import as singleton across all renderer instances (#21880)
* perf: cache KaTeX module import as singleton across all renderer instances

KatexRenderer.svelte dynamically imports katex, mhchem, and the CSS on every component mount. When a message contains multiple math expressions, this triggers redundant module resolution for each one. Move the import promise to a module-level singleton using Svelte's context='module' script block so it loads once and is shared across all KatexRenderer instances.

* Update KatexRenderer.svelte
2026-02-26 15:34:42 -06:00
..
2026-02-23 01:40:53 -06:00
2026-02-23 01:40:53 -06:00
2026-02-15 22:55:50 -06:00
2025-11-30 03:56:12 -05:00
2026-02-25 16:56:32 -06:00
2025-08-11 17:00:06 +04:00
2025-12-21 15:27:33 +04:00
2025-12-21 20:37:51 +04:00
2025-01-22 00:13:24 -08:00
2025-09-15 13:22:41 -05:00
2026-02-22 15:22:53 -06:00