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

Wait for a Page event before collecting events #2

Closed
wants to merge 2 commits into from

Conversation

geoffdutton
Copy link

@geoffdutton geoffdutton commented May 16, 2018

The order of events from Puppeteer is not guaranteed, and chrome-har essentially ignores the other methods until Page. frameStartedLoading or Page. frameScheduledNavigation is seen: https://github.com/sitespeedio/chrome-har/blob/master/index.js#L195

I'm not confident this won't have unintended side effects, but it's worked properly on a few sites.

Any thoughts?

This probably has something to do with sitespeedio/chrome-har#19 as well.

@geoffdutton
Copy link
Author

Actually, I don't think this will work. I think a better approach would be to have chrome-har handle out of order events.

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

Successfully merging this pull request may close these issues.

None yet

1 participant