The critical rendering path is the sequence of steps a browser must take to convert a page’s HTML, CSS, and JavaScript code into pixels displayed on screen, including building the DOM, calculating CSS styles, and page layout.
Optimizing the critical rendering path involves identifying the resources absolutely necessary to display initial visible content (above the fold) and prioritizing their loading, while delaying resources unnecessary for this first paint.
Why it matters
An unoptimized critical rendering path is one of the main causes of a high LCP (Largest Contentful Paint), directly affecting the Core Web Vitals score and the perceived user experience when the page loads.