Dive into Savings with MainWP - $50 OFF on our Yearly Plan!
👉 Hurry, before the deal fades to black! ⏰

How to Use the ShortPixel Critical CSS Plugin on Your Site

ShortPixel Critical CSS Plugin for WordPress

Heads up: This page may include affiliate links. Read the full disclosure.

Generating critical CSS on your site can help improve front-end performance and remove float issues. Being able to generate critical CSS quickly can be painful if handled manually, or the process can be slow if run locally.

ShortPixel Critical CSS

There is a new stand-alone plugin for critical CSS generation from ShortPixel. After the plugin has been installed and activated on your site, you will need to add the ShortPixel API, which you can grab from your ShortPixel account. The API key and the settings can be configured in wp-admin from:

Settings > SP Critical CSS

You can cache Critical CSS for templates if you have a lot of content on your site. The critical CSS will be regenerated automatically from cron events on your site.

wp_shortpixel_critical_css_api_cron > runs every 1 minute
wp_shortpixel_critical_css_web_check_cron > runs every 1 minute
shortpixel_critical_css_purge_log > non-repeating

Also, depending on how often content or changes are made on the site, you can set the web check interval, and CSS selectors can be added to include those styles as part of the critical CSS generation.

Another performance improvement included is to lazyload CSS files which will improve front-end performance on the site.

ShortPixel Critical CSS - Web Check Interval

ShortPixel Critical CSS - Lazyload CSS Files

The plugin is currently in beta and is 100% free to use. The ShortPixel Critical CSS plugin and service integrate with WP Rocket and Elementor plugins. The only caching plugin that the plugin currently works with is WP Rocket.

Useful Links

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.