Is it possible to hide or scramble/obfuscate the javascript code of a webpage?

后端 未结 9 1171
情深已故
情深已故 2020-12-10 15:38

I understand that client side code must be readable from the browser but I wonder (since there are too many things that I ignore) if there are ways to obfuscate to code to t

9条回答
  •  爱一瞬间的悲伤
    2020-12-10 16:07

    It is good practice to minify your JS with a tool such as YUI Compressor. I would not obfuscate it unless you have a specific need to do this. There are plenty of online obfuscators such as this one

    See this article: http://developer.yahoo.net/blog/archives/2007/07/high_performanc_8.html

提交回复
热议问题