Loading...
Loading...
Critical Rendering Path (CRP) is sequence of steps browser performs to transform HTML, CSS and JavaScript into pixels on screen.
Simply put, it's path from receiving HTML to displaying page to user.
CRP goal is minimizing time needed to display first useful content (First Contentful Paint, FCP).
HTML Parsing
CSS Loading and Parsing
Render Tree Creation
Layout (or Reflow)
Painting
Composite & Display
CRP directly affects:
defer or async, can stop HTML parsing.| Method | Explanation |
|---|---|
defer/async for scripts | Reduce HTML parsing blocking |
| Minification and compression | CSS, JS, HTML |
| Critical CSS inline | Embed minimal CSS in <head> |
| Lazy-loading | Deferred loading of images and unimportant blocks |
Using fonts with display: swap | Speeds up text display |
Tip:
Analyze CRP using tools like Lighthouse, Chrome DevTools, WebPageTest — this will help find and eliminate rendering bottlenecks.
async/defer, do lazy load.