Page load time with JavaScript

前端 未结 6 2372
梦谈多话
梦谈多话 2020-12-23 17:27

I am looking for a proper way to test the time it takes a page to fully load all its resources. What I\'ve done so far is add:

window.startTime = (new Date).         


        
6条回答
  •  南笙
    南笙 (楼主)
    2020-12-23 18:06

    I consider using Firefox's Firebug:

    enter image description here

    ..or the Developer Tools of Chrome (press F12) enter image description here

    See also:

    • https://getfirebug.com/network
    • https://developers.google.com/chrome-developer-tools/docs/network

提交回复
热议问题