How do you do page performance tests?

后端 未结 7 1319
广开言路
广开言路 2021-02-15 12:31

I know everyone who reads the question will think \"Firebug!\" right away. Maybe some will think \"YSlow!\" and \"Google Page Speed!\"

While I really like these tools, I

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-15 12:56

    Put a script block at the beginning of the document, at its end and set window.onload. Grab the current timestamp via Number(new Date) at each of these 'sequence points' and you can get a first impression of how long the page needs to render in a browser-agnostic way.

提交回复
热议问题