From e852ffc600af5a3def2e4999f0f1473b889e692f Mon Sep 17 00:00:00 2001 From: Douglas Vought Date: Tue, 13 Aug 2024 09:32:20 -0400 Subject: [PATCH] Load mermaid asynchronously If mermaid is synchronously loaded, a slow load can prevent the sidebar navigation from displaying. Instead, we load mermaid asynchronously and then call `mermaidLoaded()` when it loads. --- lib/elixir/scripts/elixir_docs.exs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/elixir/scripts/elixir_docs.exs b/lib/elixir/scripts/elixir_docs.exs index 39958e0e110..c92c4601ce5 100644 --- a/lib/elixir/scripts/elixir_docs.exs +++ b/lib/elixir/scripts/elixir_docs.exs @@ -189,9 +189,8 @@ canonical = System.fetch_env!("CANONICAL") before_closing_body_tag: fn :html -> """ - + """ _ ->