fix(webui): remove eager markdown preload

Remove the eager preloading of markdown/code-highlighting chunk at startup.
The markdown renderer will now only be loaded when actually needed to render content.
This commit is contained in:
yorkhellen authored and Xubin Ren committed 2026-05-16 01:42:42 +08:00
1 parent 0a25f696ab
commit 52a9300d9e
2 files changed
+3 -20

No files matched your search

+1 -3
View File
@@ -10,9 +10,7 @@ interface MarkdownTextProps {
const loadMarkdownRenderer = () => import("@/components/MarkdownTextRenderer");
const LazyMarkdownRenderer = lazy(loadMarkdownRenderer);
export function preloadMarkdownText(): void {
void loadMarkdownRenderer();
}
/**
* Lightweight markdown renderer mirroring agent-chat-ui: GFM + math via