When a JavaScript file is sent over an HTTP connection, the entire file is sent, and then the preprocessor on the clientside will deal with the rest?

Therefore, would removing comments and whitespace in a .js file optimize a js file for transfer?

link|improve this question

67% accept rate
feedback

1 Answer

up vote 1 down vote accepted

I use Google Closure, gzip, and header cache tags to optimize my js transfer.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.