MediaWiki:BackendInformation/QueuedJobs.js

$.when(mw.loader.using(["mediawiki.api"])).then(function {    return new mw.Api      .get({ action: "query", meta: "siteinfo", siprop: "statistics", format: "json", })     .then(function (data) { var jobs = data.query.statistics.jobs; if (mw.config.get('skin') === 'cosmos') { $('').html(jobs).appendTo('#p-tb ul'); } else { $('').html(jobs).prependTo('#p-personal ul'); } } });