3 ms·
> Do you write minified javascript? Yes [1] [2] [3]? [1] https://js1024.fun/demos/2020/46/readme https://js1024.fun/demos/2020/46/readme [2] https://js1024.f
by lifthrasiir 3y ago
> Do you write minified javascript?
Yes [1] [2] [3]?
[1] https://js1024.fun/demos/2020/46/readme https://js1024.fun/demos/2020/46/readme
[2] https://js1024.fun/demos/2022/18/readme https://js1024.fun/demos/2022/18/readme
[3] https://github.com/lifthrasiir/roadroller/blob/442caa4/index.mjs#L1106-L1225 https://github.com/lifthrasiir/roadroller/blob/442caa4/index...
Jokes aside, human doesn't read each (uncompressed) byte anyway. The number of tokens would have been much better than the number of bytes, but even this is unclear because a single token can have multiple perceived words (e.g. someLongEnoughIdentifier) and multiple tokens can even be perceived as a single word for some cases (e.g. C/C++ `#define` is technically two tokens long, but no human would perceive it as such). I would welcome a more realistic estimate than the gzipped size, but I'm confident that it won't be the number of uncompressed bytes.