Comment by infogulch
13 hours ago
Please forgive my posting on the broader topic of Mermaid... The Mermaid package has gotten much bigger recently. Compare mermaid.min.js across a sampling of major releases:
9.2.2 2022-11-09 1.09 MB
9.3.0 2022-12-15 899 kB
9.4.0 2023-02-15 2.82 MB
10.9.1 2024-05-14 3.34 MB
11.4.1 2024-11-27 2.57 MB
All the new features are really cool, and maybe this is "fine" when mermaid itself is the purpose of the website (like this submission), but it's a bigger burden when mermaid is a value-add for generic markdown documentation: every visitor has to download and execute 3+MB of js just to view simple diagrams, or worse even when there are no diagrams on that page at all.
Is there a plan to reduce the required bundle size for viewers and users that only use a small subset of mermaid's wide feature set?
No comments yet
Contribute on Hacker News ↗