This article is part of a series created in partnership with SiteGround. Thank you for supporting the partners who make SitePoint possible.
Minifying a resource means getting rid of redundant elements, that is, elements which the browser doesn’t need in order to process the document correctly.
Applying this concept to a HTML document, minification could include things like:
- Removing unnecessary quotes, empty attributes, etc.
- Getting rid of CDATA sections
These operations contribute to keep the file size down, but also make it easier to keep the code clean and maintainable.
GZipping Versus Minifying Resources
Is still worth minifying HTML if you’re using GZip?
One of the arguments against HTML minification is that, gzipping HTML pages already gets rid of white space and reduces file size. This makes minification quite useless.
Continue reading %Cut the File Size with These Three HTML Minification Tools%