User:P1131/common.js

/* // https://stackoverflow.com/a/31924873 // https://phabricator.wikimedia.org/T99369#1484437 // https://en.wikipedia.org/wiki/Wikipedia:Rendering_math var mathTags = $('.mwe-math-mathml-a11y'); if (mathTags.length > 0){ //only do something when there's math on the page window.MathJax = { //hook into MathJax's configuration AuthorInit: function { MathJax.Hub.Register.StartupHook("End",function { //when MathJax is done...        MathJax.Hub.Queue( function { mathTags.removeClass('mwe-math-mathml-a11y'); $('.mwe-math-fallback-image-inline').addClass('mwe-math-mathml-a11y'); }       );      });    }  };  mw.loader.load('https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=MML_HTMLorMML'); }