Faster first byte

Send the headers and navigation to the client so they’ll see something while you’re waiting for something to finish. Perhaps the client won’t even finish downloading the headers when the render completes, you’ve gotten the first byte out faster.

override render(HtmlWriter) {
  HtmlWriter.Flush()
  DoSomeExpensiveOperation()
  // or join with a thread that's loading state
  base.Render(HtmlWriter)
}
Written on February 20, 2006