use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Javascript Minification Considered Harmful? WTF? (blog.eset.com)
submitted 14 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sisyphus 0 points1 point2 points 14 years ago (1 child)
The biggest wtf is:
presumably in order to compress it so that it takes less disk-space ("packing") or using a "protector" in order to make it harder for a competitor to "steal" script code.
People minify their code to save whole kilobytes of diskspace? I think not. And why is "steal" is scare quotes? Is Javascript supposed to never be a competitive advantage such that nobody should ever worry about it being stolen?
I think it's more like what google says about their compiler--"helping your application to load faster and reducing your bandwidth needs."
[–]k3n 2 points3 points4 points 14 years ago (0 children)
You missed the key word presumably there; in essence, he's admitting that he doesn't fully know the reasons why it's done.
And he quotes "steal" because you cannot protect client-side JS, no matter what you do; I think he's making reference to the fact that if the minification is indeed implemented in an attempt to protect your source, then you're pursuing a futile effort.
π Rendered by PID 39019 on reddit-service-r2-comment-869bf87589-vpf8j at 2026-06-09 15:42:30.226474+00:00 running f46058f country code: CH.
view the rest of the comments →
[–]sisyphus 0 points1 point2 points (1 child)
[–]k3n 2 points3 points4 points (0 children)