跳到内容

Speed Up – Optimize CSS Delivery

v1.0.14

Simone Nigro · 2016年12月8日 上架

This plugin load the stylesheets asynchronously and improve page load times.

正在使用
500+
评分
5.0 / 5
累计下载
6.2 万
最近更新
2026年7月26日
8 条评价需要 WordPress 6.0+已测试到 7.0.9PHP 7.0+

贡献者

This plugin is no longer recommended. Deferring every stylesheet makes the page paint before its own layout arrives. That flash of unstyled content is measured as Cumulative Layout Shift — one of the Core Web Vitals this plugin is meant to improve.

The current advice is to inline the CSS needed for the top of the page and defer only the rest, which is more than rewriting a link tag can do.

If you have not configured the exclusion filter for your main stylesheets, deactivating this plugin will most likely improve your scores rather than worsen them.

This small plugin (5 Kb) loads the stylesheets asynchronously and improve page load times.

The recommended use of this plugin is to load your vital stylesheets synchronously and non-vital CSS files asynchronously.
Non-vital CSS-files can be for example: fonts, icons, before the fold template-specific CSS, etc.

You can choose which files to load synchronously with a filter in your function.php, eg.:

// exclude main and child stylesheets from delivery optimization
function exclude_from_delivery_optimization($handle){
    return in_array($handle, array('main-stylesheet', 'child-stylesheet'));
}
add_filter('speed-up-optimize-css-delivery', 'exclude_from_delivery_optimization');

Note: this only works if your other plugins and theme add the CSS correctly.

Plums

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

导航

说明

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

© 2026 Plums