Faster first byte.

By | February 20, 2006

override render(HtmlWriter)
HtmlWriter.Flush
DoSomeExpensiveOperation
// or join with a thread that’s loading state
base.Render(HtmlWriter)

This way, you can 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.