Re:Minification Is Evil
by tecleandor on Wednesday November 22, 2023 @10:55AM
(#38380895)
Quick test I've done with some popular frameworks. I wonder if minification affects to parsing speed.
Edit: something important to note: some frameworks (e.g. React) have lots of comments on their un-minified versions, that are removed when minified. That affects their size greatly.
[ Parent
| on HN ]
> Edit: something important to note: some frameworks (e.g. React) have lots of comments on their un-minified versions, that are removed when minified. That affects their size greatly.
Are you telling us your code doesn't? :-)
Re:Minification Is Evil
by tecleandor on Wednesday November 22, 2023 @11:46AM
(#38381598)
Hah! It's self-documenting!
Nah, in a more serious note, to properly compare the impact of minification, I should remove the comments from the unminified (maxified?) version first. :)
Nah that wouldn't be fair, the code I serve my users initially has comments too and the arguments that people bring to criticize minification is that it adds complexity if you want to read the code in the browser. The comments should stay