render-blocking resource
A file, usually a stylesheet in the head or a synchronous script, that the browser must finish loading before it will draw the page.
In more detail
The browser waits for CSS because drawing before styles arrive would flash unstyled content and then jump. Keeping critical CSS small and marking scripts defer or async reduces render-blocking time.
Related terms
- critical rendering path — The sequence of steps from receiving HTML, CSS and JavaScript to drawing the first pixels: build the DOM and CSSOM, the render tree, layout and paint.
- stylesheet — A file or block of CSS rules that tells the browser how a page's elements should look.
- defer attribute — A script attribute that downloads the script in the background and runs it, in document order, only after the HTML has finished parsing.
- critical CSS — The small subset of CSS needed to draw the first screen of a page, often inlined in the HTML so rendering is not blocked by a stylesheet download.
Taught in
- CSS Parsing, The CSSOM And The Render Tree — Frontend Architecture & Web Platform
- Critical Rendering Path: Preload, Prefetch And Scripts — Frontend Architecture & Web Platform
- Core Web Vitals: Measuring And Optimizing LCP, INP, And CLS — Frontend Architecture & Web Platform