-1

I know, that in the society of the web-developers to use a minifying process for their JavaScript code representing as a well stuff. But if you want to obfuscate a JavaScript code, such an action will be marked as a bad and silly stuff.

So why is it bad?

For example, the obfuscation process of the .NET applications is in the opposite side, because the obfuscating makes a .NET program difficult to disassemble.

So why is obfuscation bad for the JavaScript code?

Does it make the compile-time slow for the V8 or SpiderMonkey engines in browsers or maybe something else?

Secret
  • 2,627
  • 7
  • 32
  • 46
  • I think the premise is wrong. _Minification_ isn't meant to be used for obfuscation but to save bytes on transfer. – Octavian Helm May 03 '13 at 10:40
  • @OctavianDamiean Where did you see that I've linked the obfuscation and minifying process? I read again and have no suggestion about what are you talking about, because I've talked about these two processes separately. – Secret May 03 '13 at 10:43
  • For me the first paragraph kinda reads like that. – Octavian Helm May 03 '13 at 10:46
  • @OctavianDamiean Paragraph or a title? It's a different stuff. Title begins with a `Why to obfuscate...`, paragraph does from `I know...` – Secret May 03 '13 at 10:47
  • Thanks, I know how to distinguish a paragraph and a title. The second sentence in the first paragraph. – Octavian Helm May 03 '13 at 10:48
  • @OctavianDamiean And what? Obfuscation is representing as something incorrect often, isn't it? – Secret May 03 '13 at 10:50

1 Answers1

2

Depending on obfuscator you use, it can influence badly on javascript performance. Moreover, some antiviruses can block such code from execution if they "think" it might be dangerous.