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 :-/
Comment
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
Really?! That's impressive in that case. I didn't know that. I wonder if UglifyJS deals with that at all.
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 )
Yes, it does some inlining and other stuff, something compiler does in other languages