2

I am wondering for benchmarking purposes if there is a DOM event or other way to determine when the browser has finished parsing/rendering the CSS. I'm trying to optimize CSS selectors and need a way to measure the drawing/rendering/reflowing times.

halfer
  • 19,824
  • 17
  • 99
  • 186
Ben Crouse
  • 8,290
  • 5
  • 35
  • 50

1 Answers1

2

If you are using Chrome/Chromium there is a built in profiler which includes rendering. This is what it looks like when run on this page: https://i.stack.imgur.com/J1PQi.png

Press Ctrl-Shift-J to access the developer tools in Chrome.

I'm sure that Firebug has something similar for Firefox.

kcbanner
  • 4,050
  • 1
  • 25
  • 18