I read data from database, then i do formatted HTML+CSS+js
output with some custom tags.
I use paginating and output only 10 records per page - there
are no some long fields, however a lot of CFIF conditions, etc.
I've noticed that there are a lot of white spaces, that could
However, when I use cfprocessingdirective or
enablecfoutputonly - i can't see almost any differences compared to
not using them: spaces are on their places (like <tr>
.............. <td> .......... etc)!
Also - i can't put <cfsilent> everywhere, because there
are TONS of cfif conditions in the code...
What should I do? :( Maybe there is magic setting in CF
administrator for that?
There is a CF administration setting - Enable Whitespace
the Settings page.
The other white space management tools you mentioned can also
be made to
work. But you do have to code your pages with white space in
example, using <cfsilent> works best if you can group
your logic into
blocks. Same with enableoutputonly. If your page is one giant
<cfoutput> you are not going to see much improvement
with this option.
For it to work you need to only have <cfoutput> tags
around what is
actually meant to be sent to the client not any of the