The online closure compiler is amazing:
http://closure-compiler.appspot.com/home
However, when using the advanced option, will it affect performance of the script at all? IE, will it make it faster or slower in general, or does it depend on the script itself? Or is there no performance hit at all?
I only ask this as some scripts I write will be performance critical, and I know the answer to this question is “try and see” but I’m not very good at running these sorts of tests, I don’t know where to start.
Here are two points from the Closure Compilier faq that may interest you.
So it would seem that it will depend on the code you’ve written. Could be faster, but there’s a chance it could be a little slower. Ultimately, testing will be required.