Search code examples
javascriptobfuscationminifyv8spidermonkey

Why to obfuscate a JavaScript code is a bad style?


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?


Solution

  • 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.