Phantomjs how to set connection time

I want to set connection time for connection, like firebug provided by phantomjs

Through the phantomjs page.onResourceReceived function, I can only get the start and end times. I think that the time between the request for the start time is the wait time, the time for me is not detailed. Is there a way to get connection setup time?

+3
source share
1 answer

HTTP connection control is not displayed, and phantomjs is not an http proxy, so you won’t be able to get this information.

I also tried W3C Performance Timings in the past ... but window.performance timeouts are not supported in the current version. I hope this will be supported in the next major release.

, : onResourceRequested onResourceReceived. ( ), . , : .

, , - netsniff.

+2

All Articles