Choose a version:
13% The original file has 500240 bytes (488.5k) and is available from the project website.
There you can find the official minified version, too, which brings down the size to 65809 bytes (64.3k, 13%).

After GZIP compression these minified files vary in size:
Boot
  25799 bytes (25.2k)
CDN, direct link
cdnjs
  22856 bytes (22.3k)
CDN, direct link
cdnhttps
  22704 bytes (22.2k)
CDN, direct link
gzip -6 (default)
  21808 bytes (21.3k)
local copy
unpkg
  21807 bytes (21.3k)
CDN, direct link
gzip -9
  21753 bytes (21.2k)
local copy
jsdelivr
  21746 bytes (21.2k)
CDN, direct link
libdeflate -12
  21088 bytes (20.6k)
local copy
7zip -mx=9 -tgzip
  21053 bytes (20.6k)
local copy
kzip -s0 -rn -b4
  20999 bytes (20.5k)
local copy
pigz -11 -n
  20953 bytes (20.5k)
local copy
Zopfli
  20917 bytes (20.4k)
local copy
Zopfli (defluff)
  20916 bytes (20.4k)
local copy

perma-link to the smallest file on my server:
http://minime.stephan-brumme.com/files/lodash/lodash-4.8.2.min.js

You will automatically get the smallest lodash 4.8.2 file, ETag caching is available and
if your browser doesn't support GZIP decompression then the uncompressed version will be sent.

Currently best Zopfli settings

Save 829 bytes by using my lodash 4.8.2 Zopfli version instead of the best available CDN (3.96% smaller than jsdelivr, 20917 vs. 21746 bytes):
You can use my super-compressed files for whatever purpose you like as long as you respect the library's original license agreement.
There are no restrictions from my side - but please avoid hot-linking if you run a high-traffic website.

These command-line settings yielded the best compression ratio so far (Linux version of zopfli-krzymod):
zopfli --i100000 --mb8 --mls2 --bsr30 --lazy --ohh

(found April 13, 2016)
Description Value Parameter
iterations 100000  --i100000
maximum blocks 8  --mb8
maximum length score 2  --mls2
block splitting recursion 30  --bsr30
lazy matching in LZ77 yes  --lazy
optimized Huffman headers yes  --ohh
initial random W for iterations 1  --rw1
initial random Z for iterations 2  --rz2

Even Smaller Files Thanks To Defluff

Zopfli's output can be further optimized by the defluff tool.
In this particular case, defluff saves 1 more byte (20916 bytes).

Verify file integrity

After decompression, my uncompressed files are identical to the original ones:

MD5:
curl --silent --compressed https://raw.githubusercontent.com/lodash/lodash/4.8.2/dist/lodash.min.js --location | md5sum
2900fb1eccaa0ac8b7c19d99994f9b73  -
curl --silent --compressed http://minime.stephan-brumme.com/files/lodash/lodash-4.8.2.min.zopfli.js.gz | md5sum
2900fb1eccaa0ac8b7c19d99994f9b73  -

SHA1:
curl --silent --compressed https://raw.githubusercontent.com/lodash/lodash/4.8.2/dist/lodash.min.js --location | sha1sum
41c36d90076c771c8b63b7f670f2491324e631fa  -
curl --silent --compressed http://minime.stephan-brumme.com/files/lodash/lodash-4.8.2.min.zopfli.js.gz | sha1sum
41c36d90076c771c8b63b7f670f2491324e631fa  -

These CDNs send you the original file:
CDN Size (compressed) MD5 (uncompressed) Timestamp
unpkg 21807 bytes 2900fb1eccaa0ac8b7c19d99994f9b73 July 11, 2016 @ 16:46
jsdelivr 21746 bytes 2900fb1eccaa0ac8b7c19d99994f9b73 (invalid)

And some CDNs send you a different file:
CDN Size (compressed) MD5 (uncompressed) Comment / Diff Timestamp
Boot 25799 bytes 3fca67bc90bbdb57c918337b70e211c4 < /**
< * @license
< * lodash 4.8.2 (Custom Build) lodash.com/license | Unders [...]
< * Build: `lodash -o ./dist/lodash.js`
< */
< ;(function(){function t(t,n){return t.set(n[0],n[1]),t}fun [...]
< return true}function i(t,n){for(var r=-1,e=t.length,u=0,o= [...]
< var u=t.length;for(e&&u&&(r=t[--u]);u--;)r=n(r,t[u],u,t);r [...]
< return-1}function y(t,n,r,e){--r;for(var u=t.length;++r<u; [...]
< })}function O(t){return function(n){return t(n)}}function [...]
[...]
May 4, 2016 @ 10:41
cdnjs 22856 bytes 3fca67bc90bbdb57c918337b70e211c4 < /**
< * @license
< * lodash 4.8.2 (Custom Build) lodash.com/license | Unders [...]
< * Build: `lodash -o ./dist/lodash.js`
< */
< ;(function(){function t(t,n){return t.set(n[0],n[1]),t}fun [...]
< return true}function i(t,n){for(var r=-1,e=t.length,u=0,o= [...]
< var u=t.length;for(e&&u&&(r=t[--u]);u--;)r=n(r,t[u],u,t);r [...]
< return-1}function y(t,n,r,e){--r;for(var u=t.length;++r<u; [...]
< })}function O(t){return function(n){return t(n)}}function [...]
[...]
(invalid)
cdnhttps 22704 bytes 3fca67bc90bbdb57c918337b70e211c4 < /**
< * @license
< * lodash 4.8.2 (Custom Build) lodash.com/license | Unders [...]
< * Build: `lodash -o ./dist/lodash.js`
< */
< ;(function(){function t(t,n){return t.set(n[0],n[1]),t}fun [...]
< return true}function i(t,n){for(var r=-1,e=t.length,u=0,o= [...]
< var u=t.length;for(e&&u&&(r=t[--u]);u--;)r=n(r,t[u],u,t);r [...]
< return-1}function y(t,n,r,e){--r;for(var u=t.length;++r<u; [...]
< })}function O(t){return function(n){return t(n)}}function [...]
[...]
November 22, 2016 @ 16:35

Note: only the MD5 hashes are shown to keep things simple.

Other Versions

Available lodash versions at minime.stephan-brumme.com:

4.17.4, 4.17.3, 4.17.2, 4.17.1, 4.17.0, 4.16.6, 4.16.5, 4.16.4, 4.16.3, 4.16.2, 4.16.1, 4.16.0, 4.15.0, 4.14.2, 4.14.1, 4.14.0, 4.13.1, 4.13.0, 4.12.0, 4.11.2, 4.11.1, 4.11.0, 4.10.0,
4.9.0, 4.8.2, 4.8.1, 4.8.0, 4.7.0, 4.6.1, 4.6.0, 4.5.1, 4.5.0, 4.4.0, 4.3.0, 4.2.1, 4.2.0, 4.1.0, 4.0.1, 4.0.0

The project site contains an overview how well these versions were compressed.
Other interesting projects are AngularJS, BackboneJS, Bootstrap, D3, Dojo, Ember, jQuery, Knockout, React, Socket.IO, ThreeJS, UnderscoreJS and Vue.

Changelog

Best Zopfli parameters so far:
Size Improvement Parameters Found
20917 bytes -1 byte zopfli --i100000 --mls2 --bsr30 --lazy --ohh April 13, 2016 @ 18:44
20918 bytes -1 byte zopfli --i100000 --mls4 --bsr16 --lazy --ohh April 13, 2016 @ 18:10
20919 bytes -6 bytes zopfli --i10000 --mls4 --bsr16 --lazy --ohh April 12, 2016 @ 15:29
20925 bytes -1 byte zopfli --i1000 --mls4 --bsr16 --lazy --ohh April 12, 2016 @ 15:08
20926 bytes -1 byte zopfli --i1000 --mls4 --bsr17 --lazy --ohh April 12, 2016 @ 15:07
20927 bytes -1 byte zopfli --i1000 --mls8192 --bsr14 --lazy --ohh April 12, 2016 @ 15:06
20928 bytes -2 bytes zopfli --i1000 --mls1024 --bsr25 --lazy --ohh April 12, 2016 @ 15:05
20930 bytes -4 bytes zopfli --i1000 --mls8192 --bsr20 --lazy --ohh April 12, 2016 @ 13:18
20934 bytes zopfli --i100 --mls8192 --bsr17 --lazy --ohh April 12, 2016 @ 02:35

If there are multiple parameter sets yielding the same compressed size, only the first one found is shown.

Most recent activity on November 22, 2016 @ 16:35.

Heatmaps

This Zopfli heatmap visualizes how compression changes when modifying the --bsr and --mls parameter.
Cell's contents is the best filesize achieved (in bytes, hover with mouse over cells to see number of iterations).

Good parameters are green, bad are red. The best and worst are bold as well.
The brightness of the blue background color indicates how many iterations were processed:
10,000 or 100,000.
bsr \ mls
2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768
bsr \ mls
2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768
20958 20962 20962 20973 20976 20976 20977 20979 20977 20975 20968 20964 20949 20966 20963
20941 20922 20935 20941 20930 20931 20935 20935 20938 20932 20934 20937 20948 20931 20939
20927 20936 20947 20938 20934 20936 20931 20940 20943 20947 20942 20935 20946 20951 20932
20927 20937 20928 20942 20929 20957 20929 20924 20947 20930 20933 20946 20949 20946 20945
20924 20928 20929 20930 20926 20929 20928 20931 20942 20929 20926 20948 20926 20941 20931
20940 20926 20953 20943 20926 20930 20928 20933 20936 20933 20932 20933 20928 20930 20931
20923 20930 20940 20932 20929 20929 20929 20933 20928 20927 20929 20932 20929 20950 20934
20929 20930 20931 20938 20921 20938 20938 20931 20937 20930 20931 20945 20923 20937 20936
20923 20938 20937 20944 20927 20930 20927 20930 20945 20932 20933 20928 20926 20940 20932
20923 20931 20929 20926 20920 20933 20928 20928 20936 20930 20945 20944 20944 20937 20933
20929 20926 20936 20927 20925 20932 20929 20931 20945 20929 20933 20925 20924 20983 20931
20924 20928 20939 20926 20926 20944 20928 20929 20947 20923 20941 20931 20928 20949 20935
20924 20918 20929 20946 20926 20932 20929 20927 20928 20930 20932 20934 20929 20933 20931
20929 20924 20928 20945 20927 20946 20927 20933 20928 20925 20934 20948 20923 20971 20937
20921 20923 20929 20947 20929 20933 20928 20931 20945 20933 20937 20931 20927 20958 20934
20925 20925 20929 20929 20923 20926 20928 20929 20945 20926 20929 20930 20925 20938 20933
20928 20928 20932 20928 20928 20929 20927 20927 20938 20931 20933 20943 20923 20975 20933
20926 20928 20928 20928 20928 20923 20928 20937 20928 20931 20929 20931 20926 20931 20932
20928 20931 20928 20931 20928 20926 20929 20930 20946 20927 20932 20935 20928 20973 20933
20927 20928 20937 20923 20922 20928 20924 20930 20926 20926 20930 20943 20927 20934 20936
20927 20938 20936 20946 20927 20931 20927 20930 20927 20922 20930 20944 20928 20943 20933
20917 20926 20935 20926 20925 20930 20928 20931 20941 20929 20934 20948 20928 20938 20936
20930 20926 20927 20928 20928 20926 20924 20927 20930 20929 20934 20930 20924 20929 20931

Due to the Monte Carlo design of my search algorithm, not all parameters have reached the same number of iterations yet:
Iterations Min. Bytes Reduction Coverage
100 20934 bytes 100%
1,000 20925 bytes -9 bytes 100%
10,000 20919 bytes -6 bytes 100%
100,000 20917 bytes -2 bytes 0.58%
1,000,000
10,000,000

KZIP has far less options available for tuning/optimization. I only played around with the number of blocks (parameter -n):
Blocks Min. Bytes Compared To Best Zopfli Compared To Best KZIP
21011 bytes +94 bytes (+0.45%) +12 bytes
21069 bytes +152 bytes (+0.73%) +70 bytes
21000 bytes +83 bytes (+0.40%) +1 byte
21008 bytes +91 bytes (+0.44%) +9 bytes
20999 bytes +82 bytes (+0.39%)
21011 bytes +94 bytes (+0.45%) +12 bytes
21030 bytes +113 bytes (+0.54%) +31 bytes
21055 bytes +138 bytes (+0.66%) +56 bytes
21082 bytes +165 bytes (+0.79%) +83 bytes

Non-DEFLATE Algorithms

Archivers based on completely different compression algorithms often produce superior results.
Unfortunately, browsers only support gzip compression at the moment.
Algorithm Program Parameters Size Compared To Best Zopfli
ZPAQ (Wikipedia) zpaq zpaq -method 69 17749 bytes -3168 bytes (-15.15%)
RAR (proprietary) RAR rar a -m5 -md64m -mc63:128t -mt1 18090 bytes -2827 bytes (-13.52%)
PPMd (Wikipedia) 7zip 7za a -mx=9 -m0=ppmd 18408 bytes -2509 bytes (-12.00%)
Brotli (Wikipedia) brotli brotli -q 11 19649 bytes -1268 bytes (-6.06%)
LZMA2 (Wikipedia) xz xz -9 20200 bytes -717 bytes (-3.43%)
Burrows-Wheeler transform (Wikipedia) bzip2 bzip2 -9 20301 bytes -616 bytes (-2.94%)
ZSTD (Wikipedia) zstd zstd -19 20831 bytes -86 bytes (-0.41%)

Detailled Analysis

I wrote a DEFLATE decoder in Javascript. Click the button below to start a client-side analysis of the smallest gzipped files (may take a second):


Notes: pigz is a fast open source multi-threaded implementation of gzip written by one of the original authors of gzip.
However, when using compression level 11, pigz actually switches to the slower Zopfli algorithm and isn't multi-threaded anymore.
KrzyMOD's extensions to Zopfli offer the highest level of configuration and is therefore used for my brute-force search.
Ken Silverman wrote the closed-source KZIP compression program and Jonathon Fowler ported it to Linux.
Defluff was created by Joachim Henke; DeflOpt is a tool by Ben Jos Walbeehm.

website made by Stephan Brumme in 2015 and still improving in 2017.
all timestamps are displayed in central european time. see my changelog.
no flash, not even images or external css files - and everything squeezed into a single html file.
which was handsomely compressed before releasing it into the wild internet - obviously.

please visit my homepage and my blog, too.
email: minime (at) stephan-brumme.com