
| home | AJAX (8) || C#.NET (7) || Coldfusion Development (16) || DHTML (15) || Flash Development (19) || jQuery (8) || MSSQL (2) || UNIX (10) |
| 9.18.06 | True ColdFusion whitespace removal |
We all know it doesn’t matter what version of ColdFusion your running or what file-type you’re developers are saving their CFML in… you’ll still always have an issue with whitespace being added to your HTML that is sent to every client’s browser.
The best solution I’ve found thus far to combat this issue was found thanks to Dmitry Namiot’s posting on the ability to parse the “output buffer” sent to the client. This involves usage of internal ColdFusion Java functionality but is so horribly simple to use. For those PHP buffs, it’s exactly like using the “output buffer” ob_* (”ob_start”, “ob_get_contents”, etc.) functionality which allows futher parsing of the buffer that’s sent to the client.
My version piggybacks the Application.CFC’s
Download this code: onrequestend-outputbuffer
No comments