[WordPress] 外掛分享: WP CSS Merge

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

內容簡介

WP CSS Merge 外掛透過將本地 CSS 檔案合併成快取的套件,減少相容的前端樣式表請求,提升網站效能與載入速度。

【主要功能】
• 根據 WordPress 的印刷順序合併樣式
• 為不同樣式集創建獨立的快取套件
• 保持外部、內聯及條件樣式不變
• 自動提供原始樣式表以防合併失敗
• 支援多站點,每個站點有獨立快取位置

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.2) 或搜尋安裝

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

原文外掛簡介

WP CSS Merge reduces compatible frontend stylesheet requests by combining local CSS files into cached bundles.
Version 2 uses a safety-first bundle engine:

Uses WordPress’s resolved print order, including late dependency changes and already printed styles.
Creates different bundles for different style sets instead of sharing one global file.
Keeps external, inline, conditional, RTL, unsupported, and excluded styles unchanged. Bypasses bundling when other plugins filter stylesheet tags or URLs, preserving integrity hashes, CDN rewrites, and per-file attributes.
Rebases relative image and font URLs to their original public locations.
Writes cache files atomically in the current site’s uploads directory.
Automatically serves the original stylesheets whenever bundling is unavailable or unsuccessful.
Fingerprints the actual source contents, versions, settings, locale, URLs, and printed style combinations. Source changes are detected even when timestamps and file sizes are unchanged.
Retains published bundles for cached pages across setting changes, updates, theme switches, and deactivation.
Supports multisite with a separate cache location for each site.

The plugin never downloads remote CSS, contacts external services, or sends telemetry.
Because HTTP/2 and HTTP/3 reduce the cost of multiple requests, combining every stylesheet is not always faster. WP CSS Merge therefore combines only contiguous compatible styles. Source contents are read on each uncached PHP page request to verify freshness; existing bundles avoid repeated CSS transformation and writes.

延伸相關外掛

文章
Filter
Mastodon