From 1546273fb745e6b8387e21f3e47d6073f6a42c16 Mon Sep 17 00:00:00 2001 From: Douglas Vought Date: Fri, 16 Aug 2024 08:35:20 -0400 Subject: [PATCH] Load mermaid asynchronously If mermaid is synchronously loaded, a slow load can prevent the sidebar from displaying since it loads async and must wait for mermaid. Instead, load mermaid asynchronously and then call `mermaidLoaded()` when loading is finished. --- make/ex_doc.exs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make/ex_doc.exs b/make/ex_doc.exs index 4561df526d32..8c4596be4f8e 100644 --- a/make/ex_doc.exs +++ b/make/ex_doc.exs @@ -187,9 +187,8 @@ config = [ before_closing_body_tag: fn :html -> """ - + """ _ ->