Tools & Services
Netlify Build Plugin of the Week: Inline Critical CSS
Welcome to our series highlighting Netlify Build Plugins! Netlify Build Plugins are community-contributed scripts that can be used to perform all kinds of clever actions each time your site is built and deployed. They can automate workflows and tasks, manage notifications, and kick off events. This week, we’re highlighting the Inline Critical CSS plugin, contributed by Tom Bonnike, who is also an engineer at Shopify. The plugin extracts and inlines your critical above-the-fold CSS, and is built on top of the popular
If you’re using the Jamstack for speedy content delivery, inlining critical CSS can make your content render even faster. Inlining the critical CSS directly into the HTML document eliminates additional requests and can be used to deliver a “one roundtrip” critical path where only the HTML is a blocking resource. You can use this plugin together with Bonnike’s Inline Source plugin to inline your other assets/sources such as small images, SVGs or render-blocking scripts.