Page load time with JavaScript

前端 未结 6 2278
梦谈多话
梦谈多话 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:16

    I've generalled used a combination of YSlow, PageSpeed and the Net tab in Firebug to measure page loading times and diagnose potential problems. Firebug has lots of information that may prove useful if you haven't already checked this out.

提交回复
热议问题