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

Fix progress reporting during Playground load #1915

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

brandonpayton
Copy link
Member

Motivation for the change, related issues

Prior to this change, the service worker was not making the response available to consumers until the response was placed in the offline cache. It looks like the entire response had to be buffered before consumers had a chance to observe response progress, and at that point, there was no progress to observe because the download was complete.

Props to @adamziel for noticing this cause.

Fixes #1667

Implementation details

This updates service worker request caching so that responses are made available downstream before caching is complete.

Testing Instructions (or ideally a Blueprint)

  • CI

Prior to this change, the service worker was not making the response
available to consumers until the response was placed in the offline
cache. It looks like the entire response had to be buffered before
consumers had a chance to observe response progress, and at that
point, there was no progress to observe because the download was
complete.

This updates service worker request caching so that responses are
made available downstream before caching is complete.
@brandonpayton brandonpayton added [Type] Bug An existing feature does not function as intended [Package][@wp-playground] Website labels Oct 16, 2024
@brandonpayton brandonpayton requested a review from a team October 16, 2024 18:53
@brandonpayton brandonpayton self-assigned this Oct 16, 2024
@adamziel
Copy link
Collaborator

Lovely ❤️

@adamziel adamziel merged commit b27c3c8 into trunk Oct 16, 2024
9 checks passed
@adamziel adamziel deleted the fix-initial-progress-bar-props-adam branch October 16, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package][@wp-playground] Website [Type] Bug An existing feature does not function as intended
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Progress bar broken
2 participants