3 ms·
GZip - purely for bandwidth savings Minification - combination of bandwidth savings and smaller code Remember that Javascript on the client must run once per
by thephyber 11y ago
GZip - purely for bandwidth savings
Minification - combination of bandwidth savings and smaller code
Remember that Javascript on the client must run once per page load / per script inclusion. The larger the code, the more that must be parsed and executed.
Minification probably had more of an impact before Chrome+V8 when JavaScript engines competed to become extremely optimized. I suppose now most vendors have some sort of in-memory cache for recent scripts feature which would vastly reduce the average script execution due to the need to parse less frequently.