optimize parser MathJax queuing