Title: MinQueue
Author: Matthew Haines-Young
Published: <strong>2012 年 11 月 26 日</strong>
Last modified: 2013 年 9 月 19 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/minqueue.svg)

# MinQueue

 由 [Matthew Haines-Young](https://profiles.wordpress.org/mattheu/) 開發

[下載](https://downloads.wordpress.org/plugin/minqueue.1.1.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/minqueue/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/minqueue/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/minqueue/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/minqueue/#developers)

 [技術支援](https://wordpress.org/support/plugin/minqueue/)

## 外掛說明

Minification & concatenation of JS and CSS files can reduce the file size of your
assets, and reduce the number of HTTP requests, helping improve page load times.

The plugin takes a manually defined list of script/style handles, and minifies and
concatenates them into a single file which is then cached for future use.

**Features.**

 * Minifies & concatenates scripts and styles loaded using the WordPress dependency
   enqueueing system.
 * Handles scripts loaded in the header & footer.
 * Complete control – only a manually defined list of files is processed.
 * Multiple, independently processed files.
 * Minified files are only loaded if at least one component file should be loaded.
 * Compatable with localized scripts.
 * Helper tool – displays a list of scripts and styles enqueued on each page on 
   the front end of the site.

## 安裝方式

Install & Activate the plugin.

**Basic Use**

 * Enable the plugin front end tool to check what scripts and styles are minified
   on each page.
 * Copy the file handles you want to minify, and paste them into the minify queue
   textarea on the settings page.
 * Save the settings and view the front end of your site. The processed files are
   generated on page load. Check that everything is working correctly.
 * Uncheck the show helper option and save the settings again.

**Advanced use**

 * Multiple, independantly proccessed files. You can specify several lists of file
   handles to be minified and concatenated into separate files. Useful if you have
   scripts that are loaded conditionally on certain pages and should be handled 
   separately rather than minified and concatenated into one large file.
 * Options can be defined in your config file. This then disables access to the 
   settings page in the admin.

## 常見問題集

  Fatal error: Allowed memory size…

You have probably created an infinite loop when working out the order of depencies.

Example:
 Files 1, 2 and 3 are enqueued. File 1 is a dependency of 2, which is a
dependency of 3. If only scripts 1 and 3 are minified and concatenated into 1 file,
it will fail. This is because the processed file is now a dependency of file 2, 
but file 2 is also a dependency of it.

Solution:
 You must either process all files together, or process 1 and 3 in separately.

## 使用者評論

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

### 󠀁[Two years without updates = Dead Software](https://wordpress.org/support/topic/two-years-without-updates-dead-software/)󠁿

 [](https://profiles.wordpress.org/jameskatt/) 2016 年 11 月 25 日

This software is dead and dangerous if you use it since it has not kept up with 
WordPress.

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

### 󠀁[Fantastic](https://wordpress.org/support/topic/fantastic-1086/)󠁿

 [Patrick Boehner](https://profiles.wordpress.org/patrick-b/) 2016 年 9 月 3 日 
2 則留言

Works as expected and works well. For those whose themes aren’t properly concatenating
and minifying scripts and stylesheets or with several plugins then this one if fantastic.

 [ 閱讀全部 31 則使用者評論 ](https://wordpress.org/support/plugin/minqueue/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈MinQueue〉的開發相關工作。

參與者

 *   [ Matthew Haines-Young ](https://profiles.wordpress.org/mattheu/)

[將〈MinQueue〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/minqueue)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/minqueue/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/minqueue/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/minqueue/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/minqueue/)。

## 變更記錄

#### 1.1.1

 * Fix scripts loaded in the footer that are localized.

#### 1.1

 * Don’t make remote requests to the minifier.
 * Works behind htaccess.
 * Handle scripts enqueued after header scripts outputted.
 * CSS files enqueued with media argument set to false should be treated proccessed
   alongside ‘all’

## 中繼資料

 *  版本 **1.1.2**
 *  最後更新 **13 年前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 3.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.5.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/minqueue/)
 * 標籤:
 * [concatenate](https://tw.wordpress.org/plugins/tags/concatenate/)[minify](https://tw.wordpress.org/plugins/tags/minify/)
   [script](https://tw.wordpress.org/plugins/tags/script/)[style](https://tw.wordpress.org/plugins/tags/style/)
 *  [進階檢視](https://tw.wordpress.org/plugins/minqueue/advanced/)

## 評分

 4.5 星，滿分為 5 星

 *  [  25 個 5 星使用者評論     ](https://wordpress.org/support/plugin/minqueue/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/minqueue/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/minqueue/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/minqueue/reviews/?filter=2)
 *  [  3 個 1 星使用者評論     ](https://wordpress.org/support/plugin/minqueue/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/minqueue/reviews/)

## 參與者

 *   [ Matthew Haines-Young ](https://profiles.wordpress.org/mattheu/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/minqueue/)