-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Do not include MathJax.js unless it is really needed #5497
Comments
+1; reasonable. |
…t is really needed
…t is really needed
…t is really needed
…eded Fix #5497: Do not include MathJax.js and jsmath.js unless it is really needed
Fixed by #5536 |
Wow, thanks a lot! |
Would it be possible to only include the mathjax js script on a per-page basis? While #5536 is an improvement, it still seems that even if only one page in the build contains math, mathjax is included in every page. In our case, we have 1 page that needs math, and 167 that don't. And mathjax is huuuuge.. |
@jabl That is not easy, but maybe possible. Could you file a new issue please? I'll try it in future version. |
Something about this does not operate well. I clearly got math in my docs but randomly mathjax isn't included. This seems to occur when I update the conf.py but I don't edit the .rst files. When I edit a .rst file it fixes itself. |
@NateZimmer I guess it might be a bug of incremental build. Could you file an issue with detailed procedure please? I'll take a look later. |
When a project does not have any math directives or roles, still every HTML page has this tag when built with Sphinx 1.8:
This is unwanted, and did not happen with Sphinx 1.7.
It would be nice if the tag was included only when the page (or the project as a whole) has a math directive or role.
The text was updated successfully, but these errors were encountered: