Title: PUZZLER is JS + CSS combine
Author: igor.antoshkin
Published: <strong>2015 年 12 月 23 日</strong>
Last modified: 2015 年 12 月 24 日

---

搜尋外掛

![](https://ps.w.org/puzzler/assets/banner-772x250.jpg?rev=1315732)

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

![](https://ps.w.org/puzzler/assets/icon-128x128.png?rev=1315733)

# PUZZLER is JS + CSS combine

 由 [igor.antoshkin](https://profiles.wordpress.org/igorantoshkin/) 開發

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

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

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

## 外掛說明

Puzzler – it excellent js/css aggregator for advanced users:

 * Automatically combines all enqueued scripts/styles into a single file, for faster
   loading blog.
 * Starts immediately without setting.
 * You can adds scripts and styles in queue, change the order, edit – and Puzzler
   automatically make recombines.

Puzzler – don’t worry be happy.

Require PHP 5.4 or high.

You should remember 3 key rules before using:

### Key rule 1

> All scripts and styles must include ONLY 1 time and ONLY in 1 place, e.g. in wp_enqueue_scripts
> hook

### Key rule 2

> Styles(css) aggregation perform only for media=’all’ ( without alternative stylesheets,
> titles, conditionals )

### Key rule 3

> Avoid register/enqueue scripts/styles in conditional expressions
>  add_action(‘
> wp_enqueue_scripts’, ‘my_enqueue_scripts’); function my_enqueue_scripts() {

    ```
      // -- don't do it !
      if ( is_single() || is_page() ) { 
          wp_enqueue_script('myscript');
      }

      // -- correct !
      wp_enqueue_script('myscript');

    }
    ```

#### Features

 * Auto detect files change
 * Autocorrect internal links in the CSS after aggregation ( url/src )
 * Auto +20 scores in Google PageSpeed Insights
 * Async/lazy load aggregated scripts/styles
 * Windows compatible

## 螢幕擷圖

 * [[
 * Puzzler settings

## 安裝方式

 1. Make sure **PHP version is 5.4** or high.
 2. Create in your _wp-content_ directory, **cache** folder with 0777 permissions
 3. Upload the plugin files to the `plugins/puzzler` directory, or install the plugin
    through the WordPress plugins screen directly.
 4. Activate the plugin through the ‘Plugins’ screen in WordPress
 5. You can configure plugin through “Puzzler” item in main admin menu

## 常見問題集

None FAQs

## 使用者評論

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

### 󠀁[It's really only for advanced users](https://wordpress.org/support/topic/its-really-only-for-advanced-users/)󠁿

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

interested, all scripts&styles (include themes+plugins) must enqueued only in wp_enqueue_scripts().
in this case – working perfectly, else – can be crash)

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

### 󠀁[Super fast 🙂](https://wordpress.org/support/topic/super-fast-6/)󠁿

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

Thanks.

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

### 󠀁[Broke my site](https://wordpress.org/support/topic/broke-my-site-100/)󠁿

 [sublines](https://profiles.wordpress.org/sublines/) 2016 年 9 月 3 日 1 則留言

This plugin completely broke my site. My server fulfills the requirements but changing
any settings of the plugin didn’t help at all but at least after deactivating it
everything was back to normal. What a relief. I took a look at the compressed files
it genereated and already saw that this would not work without bothering to look
into details. Also: I’m pretty sure relying on a cache folder with CHMOD 777 is 
bad practice.

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

### 󠀁[Ready to help with the plugin.](https://wordpress.org/support/topic/ready-to-help-with-the-plugin/)󠁿

 [igor.antoshkin](https://profiles.wordpress.org/igorantoshkin/) 2016 年 9 月 3 
日

Hi guys. If you have any problems or questions with the plugin, please email me 
and I will help you. igor.antoshkin@gmail.com

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

## 參與者及開發者

以下人員參與了開源軟體〈PUZZLER is JS + CSS combine〉的開發相關工作。

參與者

 *   [ igor.antoshkin ](https://profiles.wordpress.org/igorantoshkin/)

[將〈PUZZLER is JS + CSS combine〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/puzzler)

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

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

## 變更記錄

#### 1.0

 * First version

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **10 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.4.34**
 *  語言
 * [English (US)](https://wordpress.org/plugins/puzzler/)
 * 標籤:
 * [aggregate](https://tw.wordpress.org/plugins/tags/aggregate/)[combination](https://tw.wordpress.org/plugins/tags/combination/)
   [combine](https://tw.wordpress.org/plugins/tags/combine/)[css](https://tw.wordpress.org/plugins/tags/css/)
   [JS](https://tw.wordpress.org/plugins/tags/js/)
 *  [進階檢視](https://tw.wordpress.org/plugins/puzzler/advanced/)

## 評分

 4 星，滿分為 5 星

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

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

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

## 參與者

 *   [ igor.antoshkin ](https://profiles.wordpress.org/igorantoshkin/)

## 技術支援

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

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

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=igor%2eantoshkin%40gmail%2ecom&lc=GB&item_name=WP%20Puzzler%20plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)