Extract above-the-fold CSS from your stylesheets to improve load speed and Core Web Vitals. Paste your HTML and CSS to get started.
Instantly extract and optimize above-the-fold CSS for your pages to boost speed and SEO performance.
Input your complete URL. The tool loads it in a headless browser.
Extract only the CSS used in the above-the-fold portion.
Use it inline, preload it, or add to your CSS strategy.
Once you've generated your critical CSS, follow these implementation methods to improve your page loading speed.
Add critical CSS directly within a style tag in your HTML head for immediate rendering:
<head>
<style>
/* Paste your critical CSS here */
header { background: #fff; }
.hero { padding: 2rem 1rem; }
/* ... */
</style>
<!-- Then load your full CSS with defer -->
<link rel="stylesheet" href="styles.css" media="print" onload="this.media='all'">
</head>
Store critical CSS in a separate file and preload it:
<head>
<link rel="preload" href="critical.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="critical.css"></noscript>
<link rel="stylesheet" href="main.css" media="print" onload="this.media='all'">
</head>
For WordPress sites, add to your theme's functions.php file:
function add_critical_css() {
echo '<style>';
include get_template_directory() . '/css/critical.css';
echo '</style>';
}
add_action('wp_head', 'add_critical_css', 1);
The easiest method is to use RabbitLoader, which automatically extracts, optimizes, and injects critical CSS on all your pages:
<!-- Just add the RabbitLoader script to your site -->
<script src="https://cdn.rabbitloader.com/rabbit.js" async></script>
<!-- RabbitLoader handles the rest automatically -->
Use RabbitLoader to extract and manage critical CSS automatically across every page. Start free and optimize performance instantly.
Try RabbitLoader for FreeCritical CSS is the CSS required to style the visible part of the page (above-the-fold). Loading it early improves perceived performance.
It extracts just the necessary styles so you can inline them in your HTML for faster rendering.
Yes, especially metrics like FCP (First Contentful Paint) and LCP (Largest Contentful Paint).
Yes. RabbitLoader automates this across your entire site and updates it as your content changes.