[WordPress] 外掛分享: APH Merge Scripts

WordPress 外掛 APH Merge Scripts 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「APH Merge Scripts」是 2016-07-12 上架。
  • 目前有 30 個安裝啟用數。
  • 上一次更新是 2016-09-04,距離現在已有 3167 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
  • 有 5 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

agusph |

外掛標籤

minify | merge styles | merge scripts | combine styles | combine scripts |

內容簡介

結合和縮小Javascript和樣式表文件可以增加網站速度,因為它將減少HTTP請求的數量,並減小下載檔案的大小。

此外掛可幫助您完成所有這些任務。它會自動檢測和結合網頁加載的Javascript和CSS檔案到一個文件中。

** 功能 **

使用簡單。
合併所有CSS和Javascript檔案成一個檔案 - 自動檢測所需的腳本和樣式,然後將它們結合成一個檔案。
管理器工具在管理棒中,方便加入/管理網頁載入的腳本。
支援區域化腳本。
支援遠程腳本(CDN上的Javascript和CSS檔案)。內置平行下載,以優化下載時間。
支援YUI壓縮器。我們不使用關閉編譯器,因為它不是100%安全的。 請參閱此處
清除CSS和腳本檔案URL的查詢字串,利用瀏覽器快取。
簡單查看和管理合併的檔案。
選項可選擇將合併的腳本放置在頁首或頁尾
自動卸載找不到的CSS和Javascript檔案

使用方式

載入頁面時,插件會自動使用WP掛載系統檢測網頁上使用的腳本和樣式。

但是,在某些情況下,有些腳本和樣式無法被自動檢測,例如通常在wp_footer末端出現的akismet表單。

為了檢測這種腳本,首先啟用插件設置頁面中的“在管理棒中顯示管理腳本選單” 選項。此選項將在管理控制台菜單中添加一個菜單。此菜單將在打開任何頁面時出現,除了管理頁面。現在,您可以通過該菜單輕鬆地選擇要合併或排除的腳本。

原文外掛簡介

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
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.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「APH Merge Scripts」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.5 | 1.0 | 1.1 | 1.2 | 1.3 | 1.3.1 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon