4 ms·
No, there's no way. Remember that the javascript is just sending instructions to the browser. If the browser can understand those instructions, then so can anyo
by MalcolmDiggs 12y ago
No, there's no way. Remember that the javascript is just sending instructions to the browser. If the browser can understand those instructions, then so can anyone else. You can obfuscate it, uglify it, but it's not going to help you much.
That being said, if you're willing to change up your design pattern a bit, and push more logic to the server you can get your js down two a much thinner client and handle your business-logic away from prying eyes.
But IMHO, reverse-engineering a product is very easy for the vast majority of cases, even if you can't see the code. So they're going to figure out a way to copy you regardless. There are only a handful of companies left who are doing something that others have a significantly hard-time reverse-engineering. Your codebase is valuable of course, but it's rarely a meaningful competitive-edge.