Adds a button to the admin bar that generates the Critical CSS for the current page in the javascript console. Strips out the #wpadminbar and #wp-admin-* strings for your convenience. Based on the code created by Paul Kinlan, which is here: https://gist.github.com/PaulKinlan/6284142
安装:
Upload generateCritical.php and critical.js to the /wp-content/plugins/ directory
Activate the plugin through the 'Plugins' menu in WordPress
Go to the page where you want to generate the Critical CSS
Click the 'Generate Critical CSS' button and go to your development console and click 'console'. The critical CSS should be here.