Hacker News new | ask | show | jobs
by hrmmm 889 days ago
Playing with browser developer tools and always seeing obfuscated JavaScript makes me sad. I'm not a web developer, but I suspect the security gained is low enough to fall within the author's "unnecessary constraints."

On the other hand, there are projects like https://github.com/rxi/lite Its scope and layout makes it extremely tinkerable.

1 comments

I think a lot of obfuscation seen these days isn’t about security, but is a side effect of minifying code (which usually is worthwhile).
While there is a slight difference that can add up (if text assets bandwith factor well into your traffic), I prefer to push out brotli compressed unminified js/css nowadays. Makes it easier to understand JS issues on prod as well.
You might be aware already but you can set up monitoring services which host your source maps (you can deploy versioned source maps to the service when your deploy your code), so you can get errors in the monitoring app which are pinned to the correct parts of your source code. It's a bit of legwork and complexity, but useful if you already use something like sentry. If you don't, what you're doing is likely a better solution.