admin管理员组文章数量:1312985
I have a page constructed using Dojo and I need to measure how long the page takes to plete rendering on my browser (NOT time-to-first-byte, or time-to-last-byte).
In other words, the page (all bytes) might get downloaded to my broswer but the ponents I'm using (eg. calendar, grid etc) might still initialize and render long after the plete page has been downloaded.
Are there any tools that would allow me to measure when the page and all its ponents have pletely rendered, reliably?
I have a page constructed using Dojo and I need to measure how long the page takes to plete rendering on my browser (NOT time-to-first-byte, or time-to-last-byte).
In other words, the page (all bytes) might get downloaded to my broswer but the ponents I'm using (eg. calendar, grid etc) might still initialize and render long after the plete page has been downloaded.
Are there any tools that would allow me to measure when the page and all its ponents have pletely rendered, reliably?
Share Improve this question asked Nov 23, 2009 at 11:04 Ryan FernandesRyan Fernandes 8,5367 gold badges38 silver badges54 bronze badges5 Answers
Reset to default 5 +100For render times in Firefox try Google Page Speed.
EDIT: in Chrome try the new Google Speed Tracer (Chrome 4 and up), it's amazing
Firebug's profiler & net tab can be helpful. Chrome has similar functionality in their developer tools.
For Internet Explorer you could use dynaTrace.
I've found that "Page Speed" for Firefox is a great plugin, and dynaTrace is definitely the best if IE6 is required.
YSlow will help you with Firebug and as previously mentioned dynaTrace is your best bet for IE.
Can you just do a dojo.connect to a method like postCreate on one of your widgets and get a timestamp?
dojo.connect(dijit.byId("myCalendar"), "postCreate", function(){ console.log(new Date() - start); });
where 'start' is a global declared in a SCRIPT block in HEAD?
-Adam
本文标签: javascriptmeasure page rendering time on IE 6 or FF 3xStack Overflow
版权声明:本文标题:javascript - measure page rendering time on IE 6 or FF 3.x - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741903021a2403977.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论