[wordpress插件] jQuery & Plugins Asynchronous LoaderjQuery和插件异步加载程序

wordpress 插件 文章 2020-02-22 11:30 471 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Loading of JavaScript resources should be done asynchronously, in a non-blocking manner, so the load time of your webpage will not be affected (it would not be delayed by render-blocking JavaScript).

JavaScript资源的加载应以非阻塞方式异步完成,因此,网页的加载时间将不会受到影响(渲染阻止JavaScript不会延迟网页的加载时间)。

But using of deferring or async loading of jQuery causes lots of problems with jQuery plugins.

但是使用延迟或异步加载jQuery会导致jQuery插件出现很多问题。

This plugin replaces default WordPress’s JS loader with a special jQuery loader (jQl), that’s why there are no any errors with jQuery plugins.

该插件用特殊的jQuery加载器(jQl)替换了默认WordPress的JS加载器,这就是jQuery插件没有任何错误的原因。

It’s highly recommended to use any concatenate plugin, e.g., Fast Velocity Minify or WP Fastest Cache.

强烈建议使用任何串联插件,例如Fast Velocity Minify或WP Fastest Cache。

Please, do not add jQuery to the ignore list, because this plugin fixes “undefined jQuery” errors on the console log.

请不要将jQuery添加到忽略列表,因为此插件可以修复控制台日志中的“未定义jQuery”错误。

Also, it is allowed to use defer or async parsing of JS files.

另外,允许使用JS文件的延迟或异步解析。

It requires WordPress 4.1 and newer.

它需要WordPress 4.1和更高版本。

It is available in English and Russian.

它有英语和俄语版本。

安装步骤

    1. Install the plugin using FTP or WordPress Dashboard.
    2. 使用FTP或WordPress仪表板安装插件。

    3. Activate it.
    4. 激活它。

    5. Optionally you can disable jQuery CDN replacing on Settings → jQuery Async Loader page.
    6. (可选)您可以在“设置”→“ jQuery Async Loader”页面上禁用jQuery CDN替换。

    It’s highly recommended to use any concatenate plugin, e.g., Fast Velocity Minify or WP Fastest Cache.

    强烈建议使用任何串联插件,例如Fast Velocity Minify或WP Fastest Cache。

    Please, do not add jQuery to the ignore list, because this plugin fixes “undefined jQuery” errors on the console log.

    请不要将jQuery添加到忽略列表,因为此插件可以修复控制台日志中的“未定义jQuery”错误。

    Also, it is allowed to use defer or async parsing of JS files.

    另外,允许使用JS文件的延迟或异步解析。

下载地址
https://downloads.wordpress.org/plugin/asynchronous-jquery-loader.zip
-EOF-

AI助手支持GPT4.0