跳到内容

WP CSS Merge

v2.0.2

digitalapps · 2019年10月3日 上架

Safely combines compatible local stylesheets into cached bundles while preserving WordPress dependency order and automatic fallbacks.

正在使用
10 以下
评分
暂无
累计下载
1,829
最近更新
2026年9月5日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Configure safe CSS bundling, conservative minification, handle exclusions, and generated cache controls.
Configure safe CSS bundling, conservative minification, handle exclusions, and generated cache controls.
The plugin active on the Plugins screen with its direct Settings action and release metadata.
The plugin active on the Plugins screen with its direct Settings action and release metadata.

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums