Skip to content

Load mermaid asynchronously #13778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Conversation

voughtdq
Copy link
Contributor

If mermaid is synchronously loaded, a slow load can prevent the sidebar navigation from displaying since it loads async and must wait for mermaid. Instead, we load mermaid asynchronously and then call mermaidLoaded() when loading is finished. See elixir-lang/ex_doc#1941

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.
@josevalim josevalim merged commit 5b74253 into elixir-lang:main Aug 13, 2024
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@voughtdq voughtdq deleted the docs-mermaid-async branch August 13, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants