[WordPress] 外掛分享: Better WordPress Minify

首頁外掛目錄 › Better WordPress Minify
8,000+
安裝啟用
★★★★
4.2/5 分(137 則評價)
3032 天前
最後更新
問題解決
WordPress 3.1+ v1.3.3 上架:2011-04-06

內容簡介

允許您結合和縮小 CSS 和 JS 文件以提高頁面加載速度。 這個外掛使用 PHP 庫 Minify 並且依靠 WordPress 的編輯系統而不是輸出緩存,這樣就尊重 CSS 和 JS 文件的順序以及它們之間的依賴關係。 BWP Minify 是非常可自定義且易於使用的。

有助於您入門並充分利用 BWP Minify 的有用資源

官方文件
WordPress 最佳實踐 Minify

一些特點

使用 WordPress 的加載系統,提高了與其他插件和主題的兼容性
允許您通過專用管理頁面將已加載的文件移動到所需位置(標題、頁腳、遺忘等)
允許您直接在管理面板中更改各種 Minify 設置(緩存目錄、緩存年齡、調試模式等)
允許您使用友好的 Minify url,如 http://example.com/path/to/cache/somestring.js
允許您使用 CDN 為縮小的內容,一個 CDN 主機用於 JS,一個 CDN 主機用於 CSS,支持 SSL
允許您將長 Minify 字符串分為較短的字符串
提供了多種方式來添加緩存清除程序,例如 WordPress 的版本、主題的版本、緩存文件夾的最後修改時間戳等。
支持腳本本地化(wp_localize_script())
支持內部樣式
支持 RTL 樣式表
支持多媒體樣式表(例如“screen”、“print”等)
支援條件樣式表(例如“<!--[if lt IE 7]>)
提供進一步自定義的鉤子
WordPress 多站點兼容

如果您喜歡這個外掛,請不要忘記給予 5星評價,謝謝!

保持聯繫

支持內容請來至BetterWP.net社群。
透過Github關注與貢獻開發。
您也可以在Twitter上關注我。
從BetterWP.net獲取最新 WordPress 提示和想法。

語言

英語(默認)
羅馬尼亞語(ro_RO) - 感謝Luke Tyler, International Calling Cards!
土耳其語(tr_TR) - 感謝 Hakan E
法語(fr_FR)- 感謝 Sebastien
意大利語(it_IT) - 感謝Gabriele - http://cookspot.it
西班牙語(es_ES)- 感謝Ruben Hernandez - http://usitility.com/
荷蘭語(nl_NL) - 感謝Martijn van Egmond
德語(de_DE) - 感謝Matthias
塞爾維亞克羅地亞語(sr_RS)- 感謝Borisa Djuraskovic - Web Hosting Hub
印度尼西亞語(id_ID)- 感謝Nasrulhaq Muiz - http://al-badar.net
俄語(ru_RU)- 感謝Эдуард Валеев

請使用 Poedit 創建 POT 文件

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Better WordPress Minify」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Allows you to combine and minify your CSS and JS files to improve page load time. This plugin uses the PHP library Minify and relies on WordPress’s enqueueing system rather than the output buffer, which respects the order of CSS and JS files as well as their dependencies. BWP Minify is very customizable and easy to use.
Useful resources to help you get started and make the most out of BWP Minify

Official Documentation
WordPress Minify Best Practices

Some Features

Uses enqueueing system of WordPress which improves compatibility with other plugins and themes
Allows you to move enqueued files to desired locations (header, footer, oblivion, etc.) via a dedicated management page
Allows you to change various Minify settings (cache directory, cache age, debug mode, etc.) directly in admin
Allows you to use friendly Minify urls, such as http://example.com/path/to/cache/somestring.js
Allows you to use CDN for minified contents, one CDN host for JS and one for CSS with SSL support
Allows you to split long Minify strings into shorter ones
Offers various way to add a cache buster to your minify string such as WordPress’s version, Theme’s version, Cache folder’s last modified timestap, etc.
Supports script localization (wp_localize_script())
Supports inline styles
Supports RTL stylesheets
Supports media-specific stylesheets (e.g. ‘screen’, ‘print’, etc.)
Supports conditional stylesheets (e.g.

文章
Filter
Mastodon