Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit events via npm module for certain page loading milestones #240

Closed
macbre opened this issue Feb 26, 2014 · 1 comment
Closed

Emit events via npm module for certain page loading milestones #240

macbre opened this issue Feb 26, 2014 · 1 comment
Assignees
Milestone

Comments

@macbre
Copy link
Owner

macbre commented Feb 26, 2014

Emit milestone event via npm module on:

  • first byte of content response received
  • last byte of content response received
  • onDOMReady event fired
  • window onload event fired
@macbre macbre added this to the v1.0 milestone Feb 26, 2014
@macbre macbre self-assigned this Feb 26, 2014
@macbre
Copy link
Owner Author

macbre commented Feb 27, 2014

phantomas/examples$ DEBUG=phantomas:milestone ./npm.js 
phantomas v0.12.1 loaded from /home/macbre/github/phantomas/lib
Running phantomas: pid 24037
Loading progress: 10%
  phantomas:milestone timeToFirstByte: 175 ms +0ms
timeToFirstByte at 175 ms
  phantomas:milestone timeToLastByte: 225 ms +1ms
timeToLastByte at 225 ms
  phantomas:milestone onDOMReadyTime: 1 ms +0ms
onDOMReadyTime at 1 ms
Loading progress: 36%
Loading progress: 42%
Loading progress: 62%
Loading progress: 100%
  phantomas:milestone windowOnLoadTime: 354 ms +353ms
windowOnLoadTime at 354 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant