• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 21. Improving the User Experienc... > Returning Page Output Right Away wit...

Returning Page Output Right Away with <CFFLUSH>

By default, the output of all ColdFusion templates is automatically buffered by the server, which means the HTML for the entire page is sent to the browser at once, after all processing has been completed. In general, this isn't a problem. In fact, it enables ColdFusion to pull off a number of cool tricks internally (see the section “When You Can't Flush the Buffer,” later in this chapter).

That said, in some instances you will want ColdFusion to return the HTML it generates right away, while the template is executing. The browser will be capable of receiving and displaying the HTML as it is generated. Meanwhile, ColdFusion can be finishing the remainder of the template. The act of telling ColdFusion to send back the generated output right away is called clearing the page buffer.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint