该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Critical CSS and Javascript

描述

Critical CSS and Javascript

This Critical CSS plugin was built exclusively to help you remove render-blocking resources such as CSS and Javascript. We use best practices to cautiously update your website scripts to load after your markup has completed loading.

Our plugin also has the ability to defer scripts that are inline which tend to cause trouble when you defer their dependent scripts. We do this to ensure that your inline scripts will not break functionality on your site, while allowing you to benefit from the performance gains.

Deferring CSS and Javascript Plugin Settings

  • Ability to exclude specific and critical CSS files
  • Toggle deferring inline Javascript
  • Toggle deferring jQuery
  • Ability to exclude specific and critical Javascript files

How to ignore a critical CSS or Javascript file

Under the Tools section in the wp-admin of your site you will find a submenu “Defer CSS & Javascript”. Click into that page to find a text area where you can add the file that will need to be loaded immediately and not deferred. You can add filenames or path information to exclude. To add multiple assets to this textarea, simply separate them with a comma.

安装

  • Install the Critical CSS WordPress plugin
  • After installation, click activate on plugin and all your CSS and Javascript files will automatically be deferred.

评价

2020 年 11 月 27 日
pagespeed rating have dropped from 85 to 11 even after i deleted the plugin and went back to an earlier backup. DO NOT use this. Zero Stars
阅读所有1条评价

贡献者及开发者

“Critical CSS and Javascript” 是开源软件。 以下人员对此插件做出了贡献。

贡献者