{"version":"2.1.248","anchor":"published-pages-load-the-mermaid-diagram-runtime-from-the-ho","canonical_anchor":"published-pages-load-the-mermaid-diagram-runtime-from-the-ho","heading":"Published pages load the Mermaid diagram runtime from the host instead of inlining it","tier":"notice","area":"Artifacts","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/published-pages-load-the-mermaid-diagram-runtime-from-the-ho","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Published pages load the Mermaid diagram runtime from the host instead of inlining it\n\nPublished pages with diagrams are far smaller, loading the diagram library from the host.\n\n**What**\n\nPublishing a page with Mermaid diagrams no longer embeds the whole diagram library in the HTML. The page instead references `\/_runtime\/mermaid-11.16.1.min.js` served by the artifact host, so published pages are far smaller but now depend on the host serving that path.\n\n**Details**\n\n- The HTML validator, which otherwise rejects any script with a `src`, was relaxed to permit exactly that one bare tag; anything else still fails with \"External scripts are not allowed\".\n- The diagram bootstrap now returns immediately if the library is missing, so a page degrades quietly rather than erroring when the host does not serve it.\n- The oversize-publish warning now mentions only \"the inline highlighting runtime included\"; the diagram runtime is no longer part of the size story.\n\n**Evidence**\n\n`\/_runtime\/mermaid-11.16.1.min.js`\n\n- Area: Artifacts\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5"}