Skip to content

Commit be18c58

Browse files
committed
Try restoring partial response body
1 parent d931854 commit be18c58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

feat/dependencies-of/api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ async function serveHtmlGraphPage(req: Request, modUrl: string, modSlug: string,
152152

153153
yield pageHtml;
154154

155+
// Deno's response compression buffers our loading message
156+
// Instead of defeating compression, we send a few bytes of junk.
157+
for (let i = 0; i < 16; i++) {
158+
yield new Array(1024).fill(' ').join('');
159+
}
160+
155161
yield "\n<!-- now waiting for graph ... ";
156162
const d0 = Date.now();
157163
const graphText = hideLoadMsg + await graphPromise;

0 commit comments

Comments
 (0)