User:Nhjr/global.js

(function ($, mw){	console.log("User script load start...");	try{		if($(".tex, math")[0]){			console.log("start mathjax");			const script1 = document.createElement("script");   		script1.src = "https://polyfill.io/v3/polyfill.js?features=es6";    		const script2 = document.createElement("script");    		script2.src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";    		script2.async = true;    		document.head.appendChild(script1);    		document.head.appendChild(script2);		}	}catch(e){		console.error("user script error occured!");		console.error(e);	} })(jQuery, mediaWiki);