Ticket #13759 (closed feature: fixed)
Better undefined gzip compression
|Reported by:||m_gol||Owned by:||m_gol|
Description (last modified by m_gol) (diff)
We can compress better if we tell uglifyjs to not mangle undefined, as suggested by dcherman.
----- ORIGINAL TEXT -----
According to ES5.1, undefined is immutable. All supported in 2.0 browsers besides Android <4.1 (including iOS 5.1 and VERY old Safari) adhere to that.
Removing undefined from the main IIFE parameters saves 62 bytes in the gzipped minified file.
I'm putting it here for a discussion. If we decided to go for that, we also have to decide what to do about 1.x
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to build
comment:10 Changed 2 years ago by m_gol
- Description modified (diff)
- Summary changed from Remove undefined from the main IIFE parameters to Better undefined gzip compression
comment:13 Changed 2 years ago by Michał Gołębiowski
- Status changed from assigned to closed
- Resolution set to fixed