[wordpress插件] Combine JS结合JS

wordpress 插件 文章 2020-03-28 01:50 505 0 全屏看文

AI助手支持GPT4.0

评分
58
描述

WordPress plugin that combines, minifies, and compresses JS files.

结合,缩小和压缩JS文件的WordPress插件。

The JS files that this plugin combines and minifies must be enqueued by using wp_enqueue_script.

必须使用wp_enqueue_script将此插件组合并缩小的JS文件放入队列。

The plugin combines and minifies JS and writes the output into files in the uploads directory.

该插件组合并缩小了JS,并将输出写入到uploads目录中的文件中。

This plugin uses jsmin.php – PHP implementation of Douglas Crockford’s JSMin.

该插件使用jsmin.php – Douglas Crockford的JSMin的PHP实现。

This plugin combines all local JS files into a single file and includes the file in the footer of the theme (requires wp_footer being used in your theme files).

该插件将所有本地JS文件合并为一个文件,并将文件包含在主题的页脚中(要求主题文件中使用wp_footer)。

Also see the companion plugin, Combine CSS.

另请参阅配套插件组合CSS

Features include:

功能包括:

    • option to change the JS domain if a CDN is used
    • 使用CDN时更改JS域的选项

    • option to change how often JS files get refreshed
    • 用于更改JS文件刷新频率的选项

    • option to exclude certain JS files from combining
    • 用于从合并中排除某些JS文件的选项

    • option to turn on/off GZIP compression
    • 打开/关闭GZIP压缩的选项

    • option to move all enqueued JS files to the footer of the site
    • 将所有排队的JS文件移动到网站页脚的选项

    • option to turn on debugging
    • 打开调试选项

安装步骤

    1. Upload combine-js folder to the /wp-content/plugins/ directory
    2. combine-js 文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/combine-js.2.1.zip
-EOF-

AI助手支持GPT4.0