Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compress javascript? [duplicate]

Tags:

javascript

Possible Duplicate:
How can I obfuscate JavaScript?

Hi,

I want to compress a JavaScript code but not just to remove whitespaces also I want to change all variable names to unintelligible names. How can I provide this ?

Thanks in advance,

like image 461
Barış Velioğlu Avatar asked Nov 26 '22 12:11

Barış Velioğlu


1 Answers

Compressing is one thing, and the process of changing variable names to unintelligible names is called obfuscation. For that, you will need to use a javascript obfuscator or yuicompressor which does both.

Similar question(s) on SO.

  1. How can I obfuscate javascript?
like image 181
Ozair Kafray Avatar answered Dec 21 '22 13:12

Ozair Kafray