Synchronizing with MathJax

 MathJax performs many of its actions asynchronously. (File loading is asynchronous, and many actions can cause files to be loaded.) An important way to synchronize your code with the actions of MathJax is the MathJax.Hub.Queue() call. This makes sure MathJax is finished with previous tasks and ready to perform the actions you need it to.