2 ms·
CSS and JavaScript are partially ordered file formats, and there are some tricks one can do with that to boost compression ratios, with or without minification.
by hinkley 3y ago
CSS and JavaScript are partially ordered file formats, and there are some tricks one can do with that to boost compression ratios, with or without minification.
In a Java minifier ages ago, I modified it to suffix sort the constants pool and saw a little over 1% further size reduction. Given that the pool is half of the file, that’s >2% on the pool.
The reason for suffix sorting was that entities in bytecode, JS and CSS often have end of statement markers, so suffix sorting gets you slightly longer runs than prefix sorting.