[WordPress] 外掛分享: APH Merge Scripts

首頁外掛目錄 › APH Merge Scripts
WordPress 外掛 APH Merge Scripts 的封面圖片
30+
安裝啟用
★★★★
4.4/5 分(5 則評價)
3483 天前
最後更新
問題解決
WordPress 3.5+ v1.3.1 上架:2016-07-12

內容簡介

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

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

** 功能 **

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

使用方式

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

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

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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
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.

文章
Filter
Apply Filters
Mastodon