Comment

oliver

Closure is also meant to improve runtime (and presumably js load time) performance. Have you tried measuring that? Loadtime is tricky (because you have to try and measure the time between the browser getting the code, and the browser starting execution of that code). Some of the older JS packers can compress JS really well, but killed actual JS load and execution time :-/

Replies

Peter Bengtsson

Really?! That's impressive in that case. I didn't know that. I wonder if UglifyJS deals with that at all.

oliver

That was my understanding, but as a caveat I don't use any of these tools (http://nerget.com is not the worlds most heavily visited site :D )

Shashank tyagi

Yes, it does some inlining and other stuff, something compiler does in other languages