Skip to content

Commit

Permalink
Try restoring partial response body
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed May 18, 2024
1 parent d931854 commit be18c58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions feat/dependencies-of/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ async function serveHtmlGraphPage(req: Request, modUrl: string, modSlug: string,

yield pageHtml;

// Deno's response compression buffers our loading message
// Instead of defeating compression, we send a few bytes of junk.
for (let i = 0; i < 16; i++) {
yield new Array(1024).fill(' ').join('');
}

yield "\n<!-- now waiting for graph ... ";
const d0 = Date.now();
const graphText = hideLoadMsg + await graphPromise;
Expand Down

0 comments on commit be18c58

Please sign in to comment.