I personally would not bother. Whitespace makes up a small, very small amount of HTML, and if it is executed at runtime, you will suffer a performance hit by simply executing the mini-code. (Javascript, on the other hand, can do much more, because lines of code tend to be short, and the compiler can significantly shorten variable names.)
If you want to improve page loading time, and you have already minimized CSS and JS, try placing static content with a CDN and / or setting the appropriate Expires headers in your content. This can significantly affect.
source share