Title: APH Merge Scripts
Author: Agus Prawoto Hadi
Published: <strong>2016 年 7 月 13 日</strong>
Last modified: 2016 年 9 月 4 日

---

搜索插件

![](https://ps.w.org/aph-merge-scripts/assets/banner-772x250.png?rev=1463267)

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

![](https://ps.w.org/aph-merge-scripts/assets/icon-128x128.png?rev=1463254)

# APH Merge Scripts

 作者：[Agus Prawoto Hadi](https://profiles.wordpress.org/agusph/)

[下载](https://downloads.wordpress.org/plugin/aph-merge-scripts.1.3.1.zip)

 * [详情](https://cn.wordpress.org/plugins/aph-merge-scripts/#description)
 * [评价](https://cn.wordpress.org/plugins/aph-merge-scripts/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/aph-merge-scripts/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/aph-merge-scripts/#developers)

 [支持](https://wordpress.org/support/plugin/aph-merge-scripts/)

## 描述

Combining and minifying javascript dan stylesheet files can improve the speed the
website as it will reduce the number of HTTP Request and reduce the size of the 
downloaded file.

This plugin helps you to do all of that. It will automatically detect and combine
javascript and CSS files loaded by a page, into a single file javascript and CSS.

** Features. **

 * Easy to use.
 * Merge all CSS and Javascript files into one file – Automatically detect scripts
   and styles that are required on a page, and then combine them into one file.
 * There is a tool in the admin bar that makes it easy to add / manage scripts loaded
   by a page.
 * Support localized script.
 * Support remote scripts (Javascript and CSS files hosted on CDN). Built-in parallel
   download for optimum download time.
 * Support YUI Compressor. We don’t use closure compiler as it is not 100% safe.
   [read here](http://webdevcorner.com/compress-javascript-file-using-closure-compiler/#compress-file)
 * CSS & Script files URL cleaned from query string, leverage browser cache.
 * Easy to view and manage merged files.
 * There is an option to put merged script to the header or footer
 * Automatically unload CSS and Javascript files that are not found

### How To Use

While loading a page, the plugin will automatically detect the scripts and styles
used on the page using WP enqueue system.

However, in certain circumstances, there are scripts and styles that are not detected
automatically, such as akismet-form that usually comes late in the wp_footer

To check that kind of scripts, first, enable “Show Manage Scripts Menu on the Admin
Bar” option in the plugin settings page. This option will add a menu to the admin-
bar menu. This menu will appear when you open any page except for the admin page.
Now, through that menu, you can choose scripts you want to merge or exclude easily.

## 屏幕截图

 * [[
 * Admin Settings
 * [[
 * Manage scripts loaded in a page through admin bar

## 安装

Install & activate the plugin. Modify some options in the settings page to suits
your need.

## 评价

![](https://secure.gravatar.com/avatar/379d68b64a221952bf9f8b74314858d41c42123f094f8f8cdcba191cc5ade8d5?
s=60&d=retro&r=g)

### 󠀁[Super !!!](https://wordpress.org/support/topic/super-1380/)󠁿

 [solgaz](https://profiles.wordpress.org/solgaz/) 2019 年 3 月 6 日

Super !!!

![](https://secure.gravatar.com/avatar/63ffec7dc8d06632a54f809bd86b8447a55e02b04e63428722dc48fcb6523ca3?
s=60&d=retro&r=g)

### 󠀁[Not work on all pages](https://wordpress.org/support/topic/not-work-on-all-pages/)󠁿

 [M Usman](https://profiles.wordpress.org/hafizusman/) 2018 年 5 月 10 日

Your plugin is good, but it is not working on all pages. It store css and javascript
of first page. on others pages there more some css which is not loaded.

![](https://secure.gravatar.com/avatar/0b2796e8c233678ec7c8fb3317aa075d1da548ca7198ddd280ab9aefd944055f?
s=60&d=retro&r=g)

### 󠀁[Único que funcionou com https](https://wordpress.org/support/topic/unico-que-funcionou-com-https/)󠁿

 [jeankassio](https://profiles.wordpress.org/jeankassio/) 2016 年 12 月 19 日

Fiquei instalando vários para tentar um compatível com https, esse foi o único que
realmente funcionou, e além de tudo é ótimo 🙂

![](https://secure.gravatar.com/avatar/d65445c7932e77bf8d1ca0d3fd492f410bc97e16b1dee29b59b09c61a1d9fea1?
s=60&d=retro&r=g)

### 󠀁[Simple and Good](https://wordpress.org/support/topic/simple-and-good-63/)󠁿

 [John](https://profiles.wordpress.org/dpinc/) 2016 年 9 月 3 日

The safer script minify compare to others without breaking site and also have a 
flexibility to select any needed. Thanks

![](https://secure.gravatar.com/avatar/b1dd3e3ef0bd3c6b45fdc43110d224bfb793a1fe32a013276877931de07ddf59?
s=60&d=retro&r=g)

### 󠀁[Really Awesome Plugin just be careful](https://wordpress.org/support/topic/really-awesome-plugin-just-be-careful/)󠁿

 [brendancopley](https://profiles.wordpress.org/brendancopley/) 2016 年 9 月 3 日
1 回复

Let me just say that all the other plugins out there to minify JS & CSS either break
my site or don’t work at all. With this plugin I can customize which javascript 
files I want to minify and combine and which I can leave out. Now when you go through
the settings be sure to check Show Manage Scripts Menu on the Admin Bar as it’s 
essential to make sure this plugin works with your theme. By process of elimination
you can make sure your theme is intact and the great thing about this plugin is 
that it does not overwrite any of your javascript or theme files. So with a simple
check box you can revert everything as it was. Now my only complaint with this plugin
is that still has Query Strings that won’t allow my static content to cache. Also
I would appreciate in the future some support with using a CDN like Amazon Cloudfront
or WP Engine or MaxCDN.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/aph-merge-scripts/reviews/)

## 贡献者及开发者

「APH Merge Scripts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Agus Prawoto Hadi ](https://profiles.wordpress.org/agusph/)

[帮助将「APH Merge Scripts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/aph-merge-scripts)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/aph-merge-scripts/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/aph-merge-scripts/)，或通过[RSS](https://plugins.trac.wordpress.org/log/aph-merge-scripts/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/aph-merge-scripts/)。

## 更新日志

#### 1.3.1 – September 4, 2016

 * Fix chahe check issue

#### 1.3 – September 1, 2016

 * Add support to remote scripts (Javascript and CSS files hosted on other servers
   or CDN)
 * Add option to manage remote files
 * Add option to 404 page
 * Fix some issues
 * Minor performance improvements

#### 1.2 – August 21, 2016

 * Remove “File name & location” option, as now, we use predefined file name + hash
   to force user to download the latest merged file
 * Disable creating merged file on 404 HTTP Response, as it caused some problems
   when WordPress load non-existing CSS or js files
 * Use JShring as default Javascript Minifier, as it safer than the current one.
 * Fix issues on “APH Show Scripts” Menu on Admin Bar
 * Add “Show Handles” link to show handles of merged files
 * Fix other issues

#### 1.1 – July 31, 2016

 * Add support to YUI Compressor
 * Remove query string from CSS and javascript’s file URL
 * Fix some issues
 * Add uninstall file
 * Rewrite source code to meet WordPress coding standard
 * Change admin options interface

#### 1.0

Initial Public Release

## 额外信息

 *  版本 **1.3.1**
 *  最后更新：**10 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/aph-merge-scripts/)
 * 标签
 * [minify](https://cn.wordpress.org/plugins/tags/minify/)
 *  [高级视图](https://cn.wordpress.org/plugins/aph-merge-scripts/advanced/)

## 评级

 4.4 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/aph-merge-scripts/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/aph-merge-scripts/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/aph-merge-scripts/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/aph-merge-scripts/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/aph-merge-scripts/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/aph-merge-scripts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/aph-merge-scripts/reviews/)

## 贡献者

 *   [ Agus Prawoto Hadi ](https://profiles.wordpress.org/agusph/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/aph-merge-scripts/)