Skip to content

core(start-url): switch to plain old fetch#4301

Merged
paulirish merged 2 commits intomasterfrom
hanging_nhoizey
Jan 19, 2018
Merged

core(start-url): switch to plain old fetch#4301
paulirish merged 2 commits intomasterfrom
hanging_nhoizey

Conversation

@patrickhulce
Copy link
Collaborator

fixes #4287

@patrickhulce patrickhulce requested a review from wardpeet January 19, 2018 00:55

executeFetchRequest(driver, url) {
return new Promise((resolve, reject) => {
let requestId;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wardpeet I think all this was only necessary in a previous version during review when you needed requestId IIRC, was there another reason you can remember we didn't just use evaluateAsync on fetch?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot recall why I needed it but my first version had exact the same fetch as you have now. I believe @brendankenny wanted to give a good error message in a follow up but besides that I don't really know why the network dance is in there.

@paulirish paulirish merged commit 550b0c4 into master Jan 19, 2018
@paulirish paulirish deleted the hanging_nhoizey branch January 19, 2018 19:58
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.

Lighthouse hangs indefinitely on "Loading page & waiting for onload"

4 participants