Hi, it's a good idea. I think overall the change would be <5% of the compressed document size since:
- whitespace compresses very well
- document tags and attributes would probably bear more fruit then whitespace removal, and depending on their frequency in the document may be a useful enhancement
Another possibility is to bring external CSS and JS files into the main HTML document as they are processed by the compression engine. For example, replacing CSS <link> and <script src=""> tags with the imported file data would improve compression performance (larger documents compress better than multiple smaller ones) and would also reduce the active connection load on the web server (less socket connections).
We'll certainly bear all suggested improvements in mind for the next release.