该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

MiniPress

描述

Concatenation merges multiple JavaScript files into one. This means the browser downloads 1 file instead of 5, 10, or 20.

Minification removes all unnecessary space from a file. This means you only download the content you actually need.

To speed up your site, most developers will recommend you do both. But it can be time-consuming and frustrating to set this up – particularly as you install new plugins on your site.

Rather than forcing you to merge and minify files manually, this plugin will do it for you automatically. No configuration is needed, just activate and go.

This is very much a beta version of the plugin and is not expected to be stable. Please report any and all bugs to https://github.com/ericmann/MiniPress/issues.

Known Issues

0.4

  • None at this time.

0.3

  • If two scripts declare the same dependencies, that dependency will be included twice in the concatenated file.

0.2

  • If two scripts declare the same dependencies, that dependency will be included twice in the concatenated file.

0.1

  • Script dependencies are not automatically added to the concatenated script – they must be explicitly enqueued.

安装

Easy Installation

Search for “MiniPress” in the WordPress ‘Plugins’ menu.

Manual Installation

  1. Upload the entire /minipress folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题

How does SCRIPT_DEBUG work for developers?

If SCRIPT_DEBUG is set to true in the configuration file, then nothing will happen to your scripts. They will not be concatenated or minified.

What about stylesheets?

Yep, they’re concatenated and minified now, too. To turn this functionality off, declare STYLE_DEBUG in wp-config.php and set it to true.

评价

此插件暂无评价。

贡献者及开发者

“MiniPress” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“MiniPress”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.5

  • Remove goto statements.

0.4

  • Add CSS minification.

0.3

  • Update documentation before release to WordPress.org.

0.2

  • Handle script dependencies with concatenation.

0.1

  • Initial release