- Thread starter
- Admin
- #1

- Jan 26, 2012

- 4,040

***

**IMPORTANT PART, PLEASE READ*****

Hi everyone, if you would take a few minutes to test out a few Mathjax options it will help us gain more insight into optimal configuration options for using Mathjax on MHB.

1) Right-click on the following equation: \(\displaystyle \int_{0}^{\infty}e^{-x^2}dx\)

Find "Math Settings" then "Math Renderer". The 3 options you see here: HTML-CSS, SVG and MathML are the 3 settings I am asking you to test.

2) Open this thread, which contains a large amount of equations to render. It might take from 10-30 seconds to finish loading, but we aren't sure and that is what we want to know about.

3) Using all 3 "Math Renderer" settings (if allowed by your browser), please load this thread 3 times and post the loading times in this thread.

*** END OF IMPORTANT PART ***

[HR][/HR]

1)

**Rendering initializing**- I've been playing around today with some options for our Latex configuration. The main change I made was moving the typesetting (the actual rendering of equations) to the footer of each page instead of in the header. This means that the rest of the page will fully load before the rendering begins and I'm hoping that this will make our load times appear a little better. Please let me know if you notice anything.

2)

**Available fonts**- There are 3 options you can choose from for the fonts that are used to render the equations on your computer locally. By default we use an option called "HTML-CSS", which is the slowest of the 3 but the most reliable and consistent. The other two choices are "SVD" and "MathML". You can read full descriptions of each choice here.

Here is what I found when trying the 3 fonts. I used this thread by MarkFL because it has a huge amount of equations to render and takes a while. MathML only worked on Firefox but it was very fast and the font looks nice. It's not available for many browsers though. SVD is the fastest option for Chrome but looks a bit weird and less crisp on my computer. HTML-CSS, our default option, takes almost twice as long as the others to run and sometimes I do notice bad looking outputs.

3)

**Future project**- After hearing ZaidAlyafey's suggestion to have Latex render automatically as you write a post and taking a look around a lot of sites with Mathjax, I think this could be worth trying. It requires custom coding though and I don't think I can do it so we'll need help somehow. The main parts are a time loop that runs a function each time and being able pull/push basic information by DOM/element ID to and from an array.

Sadly, I can't do these things myself and reading through lots of code isn't helping me magically be a decent coder instantly So if you think you might be able to help with this then let me know.

That's all for now. Your feedback is greatly appreciated. Mathjax is awesome in most ways but there are still improvements to be made.