whitespace remove using HtmlCompressFormat(content)

Posted on 2006-05-02
Last Modified: 2013-12-24
was asking my hosting company how to get rid of whitespace his answer was to use the framework where everything runs throught index.cfm ie
<cfsavecontent variable="content">
your normal index.cfm content here

could anyone explain this method to me mainly is this some i have to do or does this just work, i have read it speed up the page load time, but how when i has to do something extra?
Question by:pigmentarts
    LVL 12

    Author Comment

    PS I have tried using it like above but all i get is:

     Variable HTMLCOMPRESSFORMAT is undefined.
    LVL 36

    Accepted Solution

    You can use

    <cfprocessingdirective suppresswhitespace="yes">

    It must be placed in the first 4096 bytes of your page

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
    Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
    This video discusses moving either the default database or any database to a new volume.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now