Live data from Hacker News

Minification Is Evil

todepond.com

11–20 of 93 posts

Re: Minification Is Evil

#11

Not minifying your code is evil from the viewpoint of people who have to wait for your page to load.

Isn't this what source maps are for anyway?

Low footprint by default, anyone who wants to inspect then downloads the extra, and for bonus points can even see the original typescripted version instead of the js.

Re: Minification Is Evil

#13

Not minifying your code is evil from the viewpoint of people who have to wait for your page to load.

Or people who cannot afford unlimited data plans. Preempting because I know we tend to be a little out of touch here: yes there are still plenty of cell plans without unlimited data, mostly among the pay per month options.

Very few websites have optimised their assets and number of connections enough that the size of the code is the bottleneck. Moreover, code tends to be highly compressible. I doubt it really saves much bandwidth. All javascript build systems out there already does it, though. Not doing it would require people to go out of their way. I think that's ultimately the main reason people do it.

Re: Minification Is Evil

#14

Not minifying your code is evil from the viewpoint of people who have to wait for your page to load.

Doesn't really matter after compression unless the bulk of your code can be culled from the end product. Tbh the largest business value this has is slowing down people trying to use your internal APIs.

Re: Minification Is Evil

#15

Not minifying your code is evil from the viewpoint of people who have to wait for your page to load.

Or people who cannot afford unlimited data plans. Preempting because I know we tend to be a little out of touch here: yes there are still plenty of cell plans without unlimited data, mostly among the pay per month options.

[deleted]

Re: Minification Is Evil

#16

The three lines of not-haiku made me want to write a haiku. Do not minify Your front end is insightful Let people inspect

And now, a limerick!

  There once was a proud web designer
  Whose code ‘pared with most was far finer
  Yet he minified
  And nobody spied
  The great masterpiece of Brent Spiner!

Re: Minification Is Evil

#18
I don't understand; I'm not going to increase the size of my assets just to please the very small minority of hackers who want to play around. I'd rather open-source my code.

Re: Minification Is Evil

#19

Not minifying your code is evil from the viewpoint of people who have to wait for your page to load.

Doesn't really matter after compression unless the bulk of your code can be culled from the end product. Tbh the largest business value this has is slowing down people trying to use your internal APIs.

It would be nice to have experimentally-derived numbers to point to in order to help people visualize whether or not minification actually improves compression to any significant degree.

Re: Minification Is Evil

#20
With GZIP and moreso Brotli the difference in actual data transfer is negligible anyway.

Minification doesn't really achieve much other than obfuscation these days.

Post reply on HN