[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

whitespace remove using HtmlCompressFormat(content)

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
 

http://www.cflib.org/udf.cfm?ID=812
 
<cfsavecontent variable="content">
your normal index.cfm content here
</cfsavecontent>
<cfoutput>##</cfoutput>


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?
0
pigmentarts
Asked:
pigmentarts
1 Solution
 
pigmentartsAuthor Commented:
PS I have tried using it like above but all i get is:

 Variable HTMLCOMPRESSFORMAT is undefined.
0
 
SidFishesCommented:
You can use

<cfprocessingdirective suppresswhitespace="yes">

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

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-b15.htm
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now