[thelist] Remove white space in your code tip

dn at dittodesign.co.uk dn at dittodesign.co.uk
Mon Mar 22 09:22:14 CST 2004

<tip type="Remove whitespace in your code"
author="Darren Yates">
Using Dreamweaver, Textpad or any good text editing tool.
You can remove all the white space within your code using
regular expressions and find & replace.
>\s+<  -   removes all space between ><
>\s+  -   removes all space after >
\s{2,}   -   \s = a space {x,} x represents number of times it appears minimum

Not to good for later ammendments but great for the search engines,
a cut in bandwidth resources over a large site and a quicker page load.

Darren Yates
dn at dittodesign.co.uk


More information about the thelist mailing list