关闭MediaWiki资源加载程序脚本标签中的异步属性
我有一个依赖性,我认为MediaWiki Resources的异步加载(特别是JQuery)正在引起问题。有没有办法在媒体上关闭此属性? 。
I have a dependency, and I think the asynchronous loading of MediaWiki resources (jQuery specifically) is causing a problem. Is there a way to switch off this attribute in a MediaWiki setting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过将
Resources/resources.php
中的jQuery依赖关系的结构与我要包含的资源复制并将.js
文件上传到指定文件夹中的资源来解决此问题。然后将以下代码添加到
localsettings.php
:I solved this by copying the structure of a jQuery dependency in
resources/Resources.php
with the resource I wanted to include and uploaded the.js
file to the specified folder.Then added the following code to
LocalSettings.php
: