From 0a8788553f29db5e71527d9629d6b8ac2f55ce5a Mon Sep 17 00:00:00 2001 From: Tom van Woudenberg Date: Tue, 25 Nov 2025 08:38:06 +0100 Subject: [PATCH] Add lazy loading configuration for mathjax Added loader configuration for lazy loading of mathjax. --- book/_config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/book/_config.yml b/book/_config.yml index 108e141..4f534e4 100644 --- a/book/_config.yml +++ b/book/_config.yml @@ -49,6 +49,9 @@ sphinx: # Options passed on to the chtml: { mtextInheritFont: true # To typeset text within math prettier, configuration part of Sphinx (https://www.sphinx-doc.org/en/master/index.html) } + loader: + load: + - "ui/lazy" # Default value (lines can be removed), enables 'lazy' loading of mathjax element, speeding up load time of page, configuration part of Jupyterbook-patches (https://teachbooks.io/manual/external/JupyterBook-Patches/README.html) keep_warnings: false # Default value (line can be removed), disables showing warnings in the book, configuration part of Sphinx (https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-keep_warnings) external_toc_exclude_missing: true # Replace this with false if you want to build all files in the book, allowing you to refer to pages which are not included in the table of contents, configuration part of jupyterbook, configuration part of sphinx-external-toc (https://sphinx-external-toc.readthedocs.io/en/latest/intro.html) external_toc_path: "_toc.yml" # Default value (line can be removed), sets path to the table of contents file, configuration part of sphinx-external-toc (https://sphinx-external-toc.readthedocs.io/en/latest/intro.html)