Skip to content

Conversation

rspencer01
Copy link
Collaborator

We were using await on the compression stream but this meant that somtimes the rest of the HTML document was being loaded before the resources had been inflated.

Now, we decompress in a blocking manner by manually pumping the promise so that we eliminate all the async.

This should fix #153

We were using `await` on the compression stream but this meant that
somtimes the rest of the HTML document was being loaded before the
resources had been inflated.

Now, we decompress in a blocking manner by manually pumping the promise
so that we eliminate all the async.
The HTML has changed as we've edited the jsinflate file
@coveralls
Copy link

Coverage Status

coverage: 88.293%. remained the same
when pulling 17baf19 on rspencer01:no_async
into 7db0f33 on man-group:master.

@rspencer01 rspencer01 merged commit 6ead659 into man-group:master Feb 21, 2025
5 checks passed
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.

Race conditions on resource decompression
3 participants