Replies: 2 comments 5 replies
-
Normally, Mermaid.js is only downloaded if it is actually used, i.e., if a Mermaid.js diagram was discovered on the page you're viewing. For example, look at our getting started guide, that doesn't include a diagram – Mermaid.js is not downloaded. I've just verified that the privacy plugin does not change this behavior. This does not hold if you added Mermaid.js to Also make sure to upgrade to the latest version of Insiders when testing. |
Beta Was this translation helpful? Give feedback.
-
Hey @squidfunk , I'm currently trying to use MkDocs in an offline environment using the offline/privacy plugins. I see the behavior/issue mentioned above where Version of mkdocs: 1.5.3 Minimal MkDocs configuration:
If I execute
If I switch Maybe I'm doing something wrong with my configuration as you mentioned above you verified correct operation? Otherwise let me know if I should open a bug report. |
Beta Was this translation helpful? Give feedback.
-
When using Lighthouse to enhance SEO and performance on a website built with Insiders and the privacy plugin enabled (to avoid sending users to download external assets), the
mermaid
js file is always shipped to users and flagged as unused js code when diagrams are not in use. It is also over 2MB in size and slows down initial load times on mobile devices significantly.It would be really nice if a new feature was added that let you explicitly toggle off
mermaid
integration if you are an Insiders user and are not using it anywhere. All that bulky JavaScript would no longer impact site performance if you aren't using it. Thoughts?Beta Was this translation helpful? Give feedback.
All reactions