I have a jQuery:
$('#gather-facts').html('<script type="text/javascript">function gatherFacts() { var r = new XMLHttpRequest(); r.open("GET", "https://<server>/apps/merge?host=" + (document.title).slice(18,-9), false); r.send(); }; window.onload = gatherFacts;</script>');');
in my MediaWiki:Common.js which is working fine except for that I need to run the script in synchronous mode.
There is a async option for jQuery but I can't seem to figure out how to add it to the above.
Currently using MediaWiki 1.25.2