laurentj / slimerjs

A scriptable browser like PhantomJS, based on Firefox
http://slimerjs.org
Other
3k stars 258 forks source link

Network timings of the requests #103

Open abozhilov opened 11 years ago

abozhilov commented 11 years ago

I'd like to have timing information of the requests in particular page. At the moment PhantomJS does not support this. I need dns resolution time, connection time, first byte and last byte. Most important are the first two. Any plans to add those to the slimerjs?

laurentj commented 11 years ago

No plan for the moment... But we could add this in the future, if we can have such information from Gecko...

abozhilov commented 11 years ago

As I wrote in PhantomJS repository, those timings are particularly important in network monitoring. The XPCOM provides this information.
https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIHttpActivityObserver https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsISocketTransport

abozhilov commented 10 years ago

Any progress on this issue?

revanth98 commented 7 years ago

Is this supported now? I can get TTFB from window.performance.timing but not DNS resolution time and connection time. They always show zero.