252
edits
Changes
Wait for $content to be added to page.
console.log('Waiting for MathJax.');
} else {
console.log($content); // delay as wikipage.content is fired before $content is added to the page setTimeout(MathJax.Hub.Queue(["Typeset", MathJax.Hub, $content]).execute(, 1000); alertconsole.log('Found MathJax; typeset done.');
}
}