Skip to content
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

Avoid CDN use for math #11

Open
gpaumier opened this issue Apr 15, 2021 · 1 comment
Open

Avoid CDN use for math #11

gpaumier opened this issue Apr 15, 2021 · 1 comment
Labels

Comments

@gpaumier
Copy link
Owner

The default behavior of nikola is to load MathJax from a CDN.

Better: load a local copy and/or include it in the theme's assets, depending on size

Best: Use KaTeX and pre-render the math text during the nikola compilation process, so that only the CSS and fonts need to be loaded by the reader's browser, but not the JS (see pelican-katex for inspiration)

@gpaumier
Copy link
Owner Author

Even better: there's a nikola plugin for local KaTeX pre-rendering, so use that (and self-hosted assets).

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

1 participant