As always, mod_deflate will give you better results, and do it with less server load, than CFML string processing. Not so say that whitespace suppression shouldn't be used, but it shouldn't be considered the end all solution for quicker page rendering. Use ENABLECFOUTPUTONLY="true", use CFOUTPUT only where needed, and use CFSILENT for blocks that really need it. Then deflate the output with the web server.
cheers, barneyb On 7/8/05, Lyons, Larry <[EMAIL PROTECTED]> wrote: > One UDF I've found very helpful in removing whitespace is HtmlCompressFormat > from the cflib project: > > From the website: > -- > This function is useful to reduce download time of your entire webpage. > Client's will load pages noticably faster. Also very useful to compress a > page before caching it for storage. > > Code is very useful in the fusebox 3 methodology, wrap this around your > #fusebox.layout# variable to compress the html output. > > Code works on 3 levels of compression, and can easily be customized for more > or different ways. > > Level 1: Replaces excessive spaces with no side effects. > > Level 2: (default) Removes more blank space but keeps html tags from > wrapping into each other, so the code is still readable (maybe even more so) > > Level 3: Replaces all comments and any spaces possible, the side effect is > space between html tags is removed, so alignment changes are possible. > -- > http://www.cflib.org/udf.cfm?ID=812 > > It can really crunch down pages to much more manageable sizes. > > Regards, > larry -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
