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

Chapter 22. Improving Performance > Controlling Whitespace

Controlling Whitespace

One of the side effects of CFML's tag-based nature is the fact that whitespace characters (such as tabs, spaces, and return characters) that you use to indent your CFML code are usually passed on to the browser as part of the final generated page. In certain cases, this whitespace can considerably inflate the size of the generated HTML content, and this in turn can have a negative effect on performance. ColdFusion provides several options for dealing with these extraneous whitespace characters.

NOTE

ColdFusion's ability to automatically control whitespace is better than ever in ColdFusion MX. You will find that in most cases, you can just enable the automatic Whitespace Management feature (discussed in a moment) and never think about whitespace issues again. Nonetheless, it is worthwhile to discuss the other options available to you, just in case.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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