/dev tips

🎊   The Modern DevTools course has now started! Visit ModernDevTools.com to find out more   🎊

(119) Node.js code hotswapping with DevTools Using the new CSS Coverage Tool (121)

Chrome DevTools: Replay how the browser drew your webpage with the Paint Profiler

4 Nov 2016
Replay how the browser drew your webpage with the Paint Profiler

We're on tip 120! Follow @umaar for more web development tips

You can use the Paint Profiler in Chrome DevTools to replay the "drawing" of your page. When you draw simple elements on screen, the text, border, outline, background, pseudo elements and more are drawn individually. For most of us, it all appears instantaneously and we don't think twice about it. The Paint Profiler allows you to see, step-by-step, exactly how the browser drew your page.

To use it:

  1. Make a new Timeline recording with "Paint" checked on.
  2. Ensure some painting occurs (for example reload the webpage)
  3. Click on a Paint record. Paint records are labelled green.
  4. In the Summary pane, click "Paint Profiler"

You can also expand the draw calls to see more details about how they were invoked.

Update: Manage Network Response Headers is now in Chrome Stable!

Sign up to receive a developer tip, in the form of a gif, in your inbox each week.