From 5b742531b287a7c3fe6a9db846fa0681360d06f2 Mon Sep 17 00:00:00 2001 From: Douglas Vought Date: Tue, 13 Aug 2024 09:42:55 -0400 Subject: [PATCH] Load mermaid asynchronously (#13778) 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 -> """ - + """ _ ->