该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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