Tuesday, 24 November 2015

ASP.NET Tips #49 - Flush HTML responses early

By flushing HTML responses, the browser gets a jump start on downloading critical resources. It’s also pretty easy to do in ASP.NET.

// Buffer response so that page is sent
// after processing is complete.
Response.BufferOutput = true; 
...
// Send the output to the client.
Response.Flush();

No comments :

Post a comment