wait for mathjax to typeset formulas
don't preview in code editing mode
always display toggle buttons in small screen
load mathjax earlier