min.js to clear source

Posted by dole on Stack Overflow See other posts from Stack Overflow or by dole
Published on 2010-12-26T10:31:41Z Indexed on 2010/12/26 10:54 UTC
Read the original article Hit count: 296

Filed under:
|

Hi there

As far i know until now, the min version of a .js(javascript) file is obtaining by removing the unncessary blank spaces and comments, in order to reduce the file size.

My questions are:

  1. How can I convert a min.js file into a clear, easy readable .js file
  2. Besides, size(&and speed) are there any other advtages of the min.js file.
  3. the js files can be encripted?
  4. can js be infected. I think the answer is yes, so the question is how to protect the .js files from infections?

Only the first question is most important and I'm looking for help on it.
TY

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about min