How can I rid of all JavaScript? #6593
-
Hi, I'm loving Material, but my site does not need JS nor Search functionality. Also LibreJS will block anyway several JS from loading reporting some warnings. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hello @alithechemist, mkdocs-material/src/templates/base.html Lines 389 to 441 in 246266f Override the If you require that no If you need more help I could stitch together some example. |
Beta Was this translation helpful? Give feedback.
Hello @alithechemist,
you can override the theme and prevent adding JavaScript to the HTML code:
https://squidfunk.github.io/mkdocs-material/customization/#extending-the-theme
https://squidfunk.github.io/mkdocs-material/customization/#overriding-blocks
mkdocs-material/src/templates/base.html
Lines 389 to 441 in 246266f