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

Including MathJax only on pages that really have TeX markup #3

Open
mpuusaar opened this issue Apr 1, 2014 · 0 comments
Open

Including MathJax only on pages that really have TeX markup #3

mpuusaar opened this issue Apr 1, 2014 · 0 comments

Comments

@mpuusaar
Copy link

mpuusaar commented Apr 1, 2014

What do you think about including the MathJax JS only on pages where the content or headings have TeX markup present. This could be achieved by lending some code from the standard TeX filter in Moodle (https://github.com/moodle/moodle/blob/master/filter/tex/filter.php) and then conditionally including the MathJax JS on the page.
This would lower the overhead of users browser by avoiding loading the MathJax JS library when it doesn´t have nothing to do :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant