how to remove whitespaces in HTML source code in Demandware?
demandware, whitespace
Solution
We have limited control over the end result, however there is the iscontent tag, which has an attribute compact.
<iscontent type="text/html" compact="true" />
Note, this tag does not filter down to included templates. Each included template requires its own iscontent tag to compress whitespace. Demandware states that compact might break the layout of tags like `<pre>`, so use caution.
Problem
I am working on demandware platform. I getting too much spaces in source code(HTML). I dont have any idea how can i optimize it, please help me. Thanks in advance