[WordPress] 外掛分享: WP CSS Merge

首頁外掛目錄 › WP CSS Merge
WordPress 外掛 WP CSS Merge 的封面圖片
全新外掛
安裝啟用
尚無評分
2404 天前
最後更新
問題解決
WordPress 3.0.1+ v1.0.5 上架:2019-10-02

內容簡介

這個外掛程式可以偵測所有透過 wp_enqueue_style 載入的樣式表,並將每個樣式表的內容複製並儲存到一個單一的樣式表中。在前端載入此樣式表,並使用 wp_dequeue_style 和 wp_deregister_style 取消載入所有其他樣式表,這樣就只需要一個 http 請求來載入 CSS 樣式,同時樣式表內容也經過縮小化。只需按一下開關,這個外掛程式就會自動處理。注意:作者只在自己運行的 AdSense 主題上進行測試,如果您遇到問題,請告訴作者,作者將能夠幫助您。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP CSS Merge」→ 直接安裝(推薦)

原文外掛簡介

This plugins detects all of the styles queued via wp_enqueue_style. Contents of each css file are copied and stored in a single css file. This file is loaded on the frontend. The plugin wp_dequeue_style and wp_deregister_style all other css files. The result is your website only makes one single http request to load css styling. Bonus feature the contents of the css file are minified.
Simply flip the switch and the plugin will do the rest.
NOTE: I have only tested this plugin on my own sites running the AdSense Theme. If you encounter a problem with this plugin please let me know. I will be able to help you.

延伸相關外掛

文章
Filter
Mastodon