這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Eliminate Render Blocking CSS

描述

eliminate-render-blocking-css.com provides an API for extracting the
critical path css from your site. This plugin inlines the results for every page
in your header section and deferres the loading of the rest of the styles.

You have to create a free account,
to be be able to use this plugin. Generation of critical path css is always free
for your front-page.

Some Features:

  • Eliminate render-blocking CSS on your front-page. Use a premium account to
    include critical CSS for all your pages and both desktop and mobile
    devices.
  • Unobstrusive generating and loading of the critcal css, falling back to your
    common CSS, when the service shouldn’t be available
  • Automated deferred CSS loading, when you are using the standard WordPress
    style loaders (wp_register_style and wp_enqueue_style)
  • Following Googles recommendations on loading critical CSS to 100%
  • Critical CSS caching, both in your sites transients and on
    eliminate-render-blocking-css.com
  • Background cache refreshing. One time cached, your site always gets a cached
    version, silently refreshed, when the caching interval ends

螢幕截圖

  • Settings for API-key, secret and additional CSS.
  • Inlined critical CSS in your HTML-template
  • Deferred styles loading according to Googles recommendations

安裝

  1. Create a free account on eliminate-render-blocking-css.com
  2. Upload the plugin files to the /wp-content/plugins/eliminate-render-blocking-css directory, or install the plugin through the WordPress plugins screen directly.
  3. Activate the plugin through the ‘Plugins’ screen in WordPress
  4. Use the Settings->Eliminate render-blocking CSS screen to configure the plugin with API key and secret

常見問題

How do you generate the critical CSS

To generate the critical CSS we use the awesome “critical” npm module
by Addy Osmani. The Eliminate render-blocking CSS service takes care of generating
the critical CSS for all of your pages and different screen sizes, plus caching
and delivering the above the fold styling in an efficient way.

What if the generated critical CSS isn’t working for my page

Sometimes the generated CSS is not covering 100% of your above the fold content.
That can be caused of lazy-loading elements, fading transitions, odd
device-sizes etc. To perfectly adjust the inlined CSS to your needs you can use
the “Additional CSS” text area on the settings page. All CSS you include there
will be added to the generated critical styles.

How do I use the premium service

Just head over to eliminate-render-blocking-css.com and upgrade your account.

評價

2017年4月30日
[Moderator note: language removed from title. Please do not use that language in the forums.] Need API but no way to get api. They just taking your email address
閱讀全部2個評價

貢獻者及開發者

“Eliminate Render Blocking CSS” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Eliminate Render Blocking CSS 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Eliminate Render Blocking CSS 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

0.9

  • Initial plugin version with critical css generation and deferred styles loading