Optimize Mermaid and blog component loading with lazy imports

This commit is contained in:
2026-01-04 11:24:14 -05:00
parent 7e89e6dda2
commit 68073b4f17
9 changed files with 3300 additions and 30 deletions

View File

@@ -1,6 +1,7 @@
import { createEffect, createSignal, onMount } from "solid-js";
import { createEffect, createSignal, onMount, lazy } from "solid-js";
import type { HLJSApi } from "highlight.js";
import MermaidRenderer from "./MermaidRenderer";
const MermaidRenderer = lazy(() => import("./MermaidRenderer"));
export interface PostBodyClientProps {
body: string;