HTML Page performance

Updated: Feb 20, 2018 by Pradeep Gowda.


  1. HTML Compressor – to compress HTML
  2. YUI Compressor – to compress CSS
  3. Closure compiler – to optimize and compressJavascript
find . -type f -name *.html  | xargs -I {} java -jar htmlcompressor-1.4.3.jar --compress-js --compress-css --nomunge {} -o {}

A sample compression:

Protip: Use google’s Page speed tool to benchmark the web pages and follow the recommendations therein.