Widget:GadgetsToc:修订间差异
小 文本替换 - 替换“window.RLQ.push(”为“window.addEventListener('jquery-ready', ” |
小 文本替换 - 替换“window.RLQ = window.RLQ || [];↵”为“” |
||
| 第1行: | 第1行: | ||
<noinclude>Only for [[Special:小工具]]</noinclude><includeonly><!--{if !isset($wgGadgetsToc) || !$wgGadgetsToc}--><!--{assign var="wgGadgetsToc" value=true scope="global"}--><script> | <noinclude>Only for [[Special:小工具]]</noinclude><includeonly><!--{if !isset($wgGadgetsToc) || !$wgGadgetsToc}--><!--{assign var="wgGadgetsToc" value=true scope="global"}--><script> | ||
"use strict"; | "use strict"; | ||
window.addEventListener('jquery-ready', async () => { | window.addEventListener('jquery-ready', async () => { | ||
await Promise.all([mw.loader.using("ext.gadget.site-lib"), $.ready]); | await Promise.all([mw.loader.using("ext.gadget.site-lib"), $.ready]); | ||