Critical CSS
noun
say it: “KRIT-ih-kul SEE ESS ESS” /ˈkrɪtɪkəl ˌsiː ɛs ˈɛs/
The small set of styles needed to draw the first screen of a page, put straight into the page's head so that part shows fast while the full stylesheet loads.
What is critical CSS?
Critical CSS is the small set of styles needed for the first screen, put straight into the page so it shows fast while the rest loads.
<head>
<style>/* header and hero styles only */</style>
<link rel="stylesheet" href="site.css" media="print" onload="this.media='all'">
</head>
In a sentence
- “The critical CSS is only a few lines; the rest of the site's styles load after it.”
- “We inlined the critical CSS for the header and hero, and the page started showing half a second sooner.”
Level: Master · More CSS terms at this level
Updated