how do we investigate how many times a browser is doing reflows?

后端 未结 3 1468
悲哀的现实
悲哀的现实 2020-12-05 14:11

Is there a web developer functionality/tool that allows us to know how many times a browser is doing reflows?

basically I want to have some sort of feedback/informa

3条回答
  •  不思量自难忘°
    2020-12-05 15:05

    1. Chrome and Safari have Timeline tab in Web Inspector where you can see all the reflows and redraws made by browser.
    2. Firefox has MozAfterPaint event. It can help you understand which regions of the page and when repainted by the browser. Firebug Paint Events add-on can be helpful here. It shows repaint events in FireBug console.

提交回复
热议问题