From ReorderConstantExpression.java :
As pointed out by the google closure compiler , code comment compression refers to gzip compression, and not to the actual reduction of "compression". The reason it can improve gzip compression is because if your code has 0 === x and x === 0 , the closure compiler normalizes both of them to 0 === x , which duplicates the text and, thus, shrinks better.
Then there is also:
typeof this.value == "object" typeof this.key == "object"
Unique Strings: typeof this. , value , key and == "object"
But if you change the order:
"object" == typeof this.value "object" == typeof this.key
Unique lines: "object" == typeof this. , value and key . Less unique lines and a rather long duplicate.
Esailija
source share