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

后端 未结 3 1465
悲哀的现实
悲哀的现实 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.
    0 讨论(0)
  • 2020-12-05 15:10

    Sometime after late 2013, the reflow logging is built into Firefox logging.

    https://mail.mozilla.org/pipermail/firefox-dev/2013-October/001044.html

    In browser console (Tools > Web Developer > Browser Console), in the [CSS] menu, select "Log"

    0 讨论(0)
  • 2020-12-05 15:14

    You can track reflow information if you have a custom built Firefox.

    see below: https://developer.mozilla.org/en-US/docs/Debugging_Frame_Reflow

    How to build Firefox with enable debugging mode: https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions

    0 讨论(0)
提交回复
热议问题