這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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〉的開發相關工作。

參與者

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

對開發相關資訊感興趣?

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