Closed liufei closed 2 years ago
Does this have any difference after gzipping?
Well, it looks like the file is bigger. :sweat:
Before:
gzip-size build/snippets/continuity-snippet.min.js
166 B
gzip-size build/snippets/loader-snippet-after-onload.min.js
973 B
gzip-size build/snippets/loader-snippet.min.js
888 B
After:
gzip-size build/snippets/continuity-snippet.min.js
166 B
gzip-size build/snippets/loader-snippet-after-onload.min.js
981 B
gzip-size build/snippets/loader-snippet.min.js
890 B
In general, don't worry about optimising files that are under 1492 bytes. A single TCP packet is 1500 bytes, and you'll lose 8 bytes if the client has to go through a NAT firewall, this means anything under 1492 bytes will always take one TCP packet whether it is 1 byte or 1492 bytes.
You're right, it really isn't necessary. Thank you very much!
Before:
After: