diff --git a/scripts/lib/plan-canvas/ui.js b/scripts/lib/plan-canvas/ui.js index df1f05626..f221f5ae1 100644 --- a/scripts/lib/plan-canvas/ui.js +++ b/scripts/lib/plan-canvas/ui.js @@ -24,28 +24,32 @@ function mermaidUrl(env = process.env) { return override && String(override).trim() ? String(override).trim() : DEFAULT_MERMAID_URL; } -// Browser module that renders `
` blocks, themed to match
-// the ECC canvas. Kept import-only so a CDN failure degrades gracefully.
+// Browser enhancement that renders `` blocks, themed to
+// match the ECC canvas. Start the remote import only after `load`: an async
+// event listener is not awaited by the browser, so a stalled CDN can never
+// keep the artifact iframe or the outer Canvas page in a loading state.
function mermaidLoaderScript(url) {
- return ``;
}