Skip to content

Loading Mermaid plugin is slow #1832

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

Closed
zhoufupeng opened this issue Jul 4, 2022 · 1 comment
Closed

Loading Mermaid plugin is slow #1832

zhoufupeng opened this issue Jul 4, 2022 · 1 comment
Labels

Comments

@zhoufupeng
Copy link

Add Mermaid and the plugin:

<script src="//unpkg.com/mermaid/dist/mermaid.js"></script>
<script src="//unpkg.com/docsify-mermaid@latest/dist/docsify-mermaid.js"></script>
<script>mermaid.initialize({ startOnLoad: true });</script>

mermaid.js file is large,3.36MB

Just a few The mermaid is used in the MD file. Please find the optimization method. Thank you

@sy-records
Copy link
Member

It's not as big as you make it out to be.

You can try other CDN sources, slow loading may be a network problem.

image

@sy-records sy-records closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants