Translations:Manual:Ajax/2/en

Therefore, Javascript code should instead use (or the $resloader javascript module). One would perform a MediaWiki API query over AJAX (instead of $ajax).