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, caption = 'Queued Jobs: ' + jobs; if (mw.config.get('skin') === 'cosmos') { $('').html(caption).appendTo('#p-tb ul'); } else { $('').html(caption).prependTo('#p-personal ul'); } }); });