|
I just tested MathJax on my blog and it works great out of the box. Easiest way to add support to this site would be to add the following to the header of every page <script type="text/javascript" src="http://yaroslavvb.com/work/MathJax/MathJax.js"></script> A more involved way would be to download MathJax, extract it, and update the link above. |
|
I'm curious to see if I can add math support without hurting the page load time. I got jsMath support working for OSQA, which you can see here. However, I was disappointed that the addition of jsMath literally added seconds to page load and rendering. It felt more slow and laggy. And user experience studies show that this can really hurt engagement. Is MathJax the next generation of jsMath? Perhaps it's worth revisiting this question, and trying your approach. I think math support would be great, as long as it doesn't make things feel slow. 1
Rendering/load time may depend on browser. It renders very fast on Chrome under MacOS. On my IPhone, the page loads fast, but the formulas are displayed as raw Latex for the first several seconds. Opening MathJax page in Firefox for the first time (MacOS) displayed formulas with raw latex for the first minute or so (apparently it was downloading some fonts that are present by default in Safari/Chrome but are missing in Firefox), after which point Latex was replaced with rendered formulas. The fonts are saved somewhere so rendering the formulas after restart of Firefox was faster. One way to test would be to open some Latex-heavy pages on mathoverflow with target browser, like http://mathoverflow.net/questions/37582/how-big-is-the-sum-of-smallest-multinomial-coefficients
(Sep 10 '10 at 14:13)
Yaroslav Bulatov
Adding a JS library should, in most instances, increase the loading time for the first page load. After its cached, it should be fast.
(May 11 '11 at 00:38)
Robert Layton
|
|
Is it possible to make use of an another server capable of rendering the images without using the one used for hosting metaoptimize? There have been times when the site is under heavy load or responds slowly; adding this overhead could make that happen more often or exacerbate it further. You might look at mathoverflow. On top of the jsmath support they have a nifty little preview renderer. It's buggy, and sometimes stuff doesn't render the same between the preview and the final product, but it works reasonably well. -Brian All rendering on Mathoverflow is done client-side with MathJax. It's pretty much just an issue of adding "<script type=" line to the page template
(Mar 01 '11 at 19:52)
Yaroslav Bulatov
Oh, nice. I assumed it was like the latex plugins I've seen for blogspot.
(Mar 01 '11 at 21:57)
Brian Vandenberg
|