Builder Critical CSS Tools

外掛說明

Builder Critical CSS Tools provides developer-friendly controls to:

  • Clear builder static CSS caches (Divi supported via its internal cache API)
  • Trigger a safe Critical CSS workflow by clearing caches and optionally warming key URLs
  • Show a reminder when site changes likely require regeneration
  • Record evidence: last regeneration trigger time and cache warming completion time

This plugin does not replace your builder’s performance engine. On Divi sites, clearing static resources typically prompts Divi to regenerate generated CSS (including Critical CSS) as pages are requested.

安裝方式

  1. Upload the plugin ZIP via Plugins > Add New > Upload Plugin, or unzip into /wp-content/plugins/.
  2. Activate “Builder Critical CSS Tools”.
  3. Use the Admin Bar menu “Builder CSS” or Tools > Builder Critical CSS Tools.

常見問題集

How do I know regeneration happened?

Builders like Divi regenerate Critical CSS lazily when pages are requested after caches are cleared. This plugin records a timestamp for the last regeneration trigger and, if cache warming is enabled, records when warming finished.

Does this generate Critical CSS by itself?

No. It focuses on clearing caches and managing a safe workflow. It can optionally warm your homepage and a few recently updated pages to help your builder regenerate cached CSS without manually visiting each page.

Does it work with Divi?

Yes. It detects Divi and uses Divi’s internal cache clear method for static CSS when available.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Builder Critical CSS Tools〉的開發相關工作。

參與者

將〈Builder Critical CSS Tools〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.2

  • Finalized builder-safe Critical CSS status wording for WP.org submission.
  • Clarified that some builders manage Critical CSS internally without exposing a readable setting.

1.1.1

  • Fixed Critical CSS setting status reporting for Divi version differences (now reports Unknown unless confidently Enabled).
  • Added an admin-only debug row showing detected option values.

1.1.0

  • Added evidence timestamps: last regeneration trigger and last cache warming completion.
  • Replaced redirect query-string notices with per-user flash notices.
  • Added optional in-progress notice while warming runs.

1.0.2

  • Plugin Check compatibility: inline nonce checks in handlers and guard notice query args with check_admin_referer.
  • Minor PHPCS ignores for safe, nonce-protected query parameters.

1.0.1

  • Plugin Check hardening: guard admin notices with a nonce and use wp_get_referer for redirects.
  • Sanitize snooze minutes with absint().

1.0.0

  • Initial release: admin bar actions, tools page, reminder banner, optional cache warming, Divi static CSS clear support.