WardCunningham/Smallest-Federated-Wiki — comment on commit 4501ef1be042f62e7ef939cc91564baa35601585
File: client/plugins/mathjax.coffee line 7
By asolove:

Oh, but we have to wait for the file to download. Luckily getScript already returns the xhr object, and jquery gives it a promise interface to attach callbacks to, so it should be something like:

```coffeescript
src = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
wiki.getScript(src).success () ->
MathJax.Hub.Queue () ->
MathJax.Hub.Typeset div.get(0)