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

Precache one request at a time #2562

Merged
merged 1 commit into from
Jun 30, 2020
Merged

Precache one request at a time #2562

merged 1 commit into from
Jun 30, 2020

Conversation

jeffposnick
Copy link
Contributor

R: @philipwalton

Fixes #2528

This is basically batched precaching with a forced batch size of 1, i.e. only have one preaching request in flight at a given time.

I think this is a win from the perspective of reducing possible bandwidth contention with the main thread during precaching as well.

Copy link
Member

@philipwalton philipwalton left a comment

Choose a reason for hiding this comment

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

👍

@jeffposnick jeffposnick merged commit 9498e91 into v6 Jun 30, 2020
@jeffposnick jeffposnick deleted the throttle-precaching branch June 30, 2020 21:03
@jobvs
Copy link

jobvs commented Aug 27, 2020

@jeffposnick Would it be possible to get this in a 5.1.4? The changes are not conflicting with the 5.x codebase. Can make the MR if you want.

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.

Batching of precache requests to prevent net::ERR_INSUFFICIENT_RESOURCES in Chrome
3 participants