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

After GZIP compression these minified files vary in size:
Boot
  38016 bytes (37.1k)
CDN
cdnjs
  31198 bytes (30.5k)
CDN
cdnhttps
  30728 bytes (30.0k)
CDN
gzip -6 (default)
  21368 bytes (20.9k)
local copy
unpkg
  21337 bytes (20.8k)
CDN
gzip -9
  21292 bytes (20.8k)
local copy
jsdelivr
  21290 bytes (20.8k)
CDN
7zip -mx=9 -tgzip
  20645 bytes (20.2k)
local copy
libdeflate -12
  20633 bytes (20.1k)
local copy
kzip -s0 -rn -b4
  20557 bytes (20.1k)
local copy
pigz -11 -n
  20502 bytes (20.0k)
local copy
Zopfli
  20470 bytes (20.0k)
local copy

perma-link to the smallest file on my server:
http://minime.stephan-brumme.com/files/lodash/lodash-4.6.1.min.js (or via HTTPS)

You will automatically get the smallest lodash 4.6.1 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 820 bytes by using my lodash 4.6.1 Zopfli version instead of the best available CDN (4.01% smaller than jsdelivr, 20470 vs. 21290 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 --mls512 --bsr30 --lazy --ohh

(found April 17, 2016)
Description Value Parameter
iterations 100000  --i100000
maximum blocks 8  --mb8
maximum length score 512  --mls512
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

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.6.1/dist/lodash.min.js --location | md5sum
8a321ba28dbd9a24311e67495a7c5208  -
curl --silent --compressed https://minime.stephan-brumme.com/files/lodash/lodash-4.6.1.min.zopfli.js.gz | md5sum
8a321ba28dbd9a24311e67495a7c5208  -

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

These CDNs send you the original file:
CDN Size (compressed) MD5 (uncompressed) Timestamp
unpkg 21337 bytes 8a321ba28dbd9a24311e67495a7c5208 July 11, 2016 @ 16:46
jsdelivr 21290 bytes 8a321ba28dbd9a24311e67495a7c5208 (invalid)

And some CDNs send you a different file:
CDN Size (compressed) MD5 (uncompressed) Comment / Diff Timestamp
Boot 38016 bytes adcbc34a9a66aa4e14e41a638c374225 < /**
< * @license
< * lodash 4.6.1 (Custom Build) lodash.com/license | Unders [...]
< * Build: `lodash -o ./dist/lodash.js`
< */
< ;(function(){function n(n,t){return n.set(t[0],t[1]),n}fun [...]
< return true}function i(n,t){for(var r=-1,e=n.length,u=0,o= [...]
< var u=n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);r [...]
< return-1}function y(n,t,r,e){--r;for(var u=n.length;++r<u; [...]
< }function O(n,t){return a(t,function(t){return n[t]})}func [...]
[...]
(invalid)
cdnjs 31198 bytes adcbc34a9a66aa4e14e41a638c374225 < /**
< * @license
< * lodash 4.6.1 (Custom Build) lodash.com/license | Unders [...]
< * Build: `lodash -o ./dist/lodash.js`
< */
< ;(function(){function n(n,t){return n.set(t[0],t[1]),n}fun [...]
< return true}function i(n,t){for(var r=-1,e=n.length,u=0,o= [...]
< var u=n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);r [...]
< return-1}function y(n,t,r,e){--r;for(var u=n.length;++r<u; [...]
< }function O(n,t){return a(t,function(t){return n[t]})}func [...]
[...]
(invalid)
cdnhttps 30728 bytes adcbc34a9a66aa4e14e41a638c374225 < /**
< * @license
< * lodash 4.6.1 (Custom Build) lodash.com/license | Unders [...]
< * Build: `lodash -o ./dist/lodash.js`
< */
< ;(function(){function n(n,t){return n.set(t[0],t[1]),n}fun [...]
< return true}function i(n,t){for(var r=-1,e=n.length,u=0,o= [...]
< var u=n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);r [...]
< return-1}function y(n,t,r,e){--r;for(var u=n.length;++r<u; [...]
< }function O(n,t){return a(t,function(t){return n[t]})}func [...]
[...]
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.11, 4.17.10, 4.17.9, 4.17.5, 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
20470 bytes -1 byte zopfli --i100000 --mls512 --bsr30 --lazy --ohh April 17, 2016 @ 13:15
20471 bytes -2 bytes zopfli --i100000 --mls64 --bsr22 --lazy --ohh April 13, 2016 @ 17:15
20473 bytes -5 bytes zopfli --i10000 --mls128 --bsr14 --lazy --ohh April 12, 2016 @ 15:44
20478 bytes -7 bytes zopfli --i1000 --mls128 --bsr14 --lazy --ohh April 12, 2016 @ 09:22
20485 bytes zopfli --i100 --mls32 --bsr16 --lazy --ohh April 12, 2016 @ 02:36

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
20510 20510 20512 20512 20529 20532 20531 20531 20531 20528 20525 20520 20498 20522 20531
20489 20487 20486 20490 20502 20499 20499 20479 20494 20484 20493 20503 20485 20518 20515
20485 20485 20494 20489 20483 20484 20487 20485 20500 20503 20505 20508 20506 20491 20489
20485 20482 20479 20484 20479 20479 20478 20493 20480 20478 20502 20507 20479 20503 20481
20478 20477 20479 20479 20476 20478 20483 20499 20474 20481 20482 20482 20482 20501 20485
20478 20487 20480 20477 20476 20478 20479 20475 20477 20477 20480 20497 20499 20495 20486
20481 20476 20485 20480 20480 20476 20476 20476 20476 20499 20481 20482 20484 20504 20484
20476 20475 20484 20479 20478 20479 20500 20487 20477 20479 20478 20497 20478 20498 20508
20479 20475 20475 20474 20479 20479 20480 20485 20475 20487 20482 20475 20480 20487 20486
20478 20476 20480 20478 20475 20476 20474 20479 20475 20482 20502 20489 20484 20488 20478
20477 20476 20478 20480 20477 20477 20471 20479 20476 20505 20483 20485 20481 20479 20487
20476 20474 20482 20479 20475 20476 20478 20495 20477 20477 20483 20475 20480 20479 20489
20477 20475 20481 20491 20475 20477 20477 20497 20478 20483 20483 20501 20482 20500 20500
20479 20484 20479 20476 20475 20479 20479 20481 20476 20480 20479 20481 20481 20479 20486
20476 20477 20481 20487 20473 20474 20481 20478 20479 20481 20481 20496 20481 20484 20499
20476 20475 20480 20478 20475 20477 20474 20483 20474 20477 20480 20480 20480 20508 20490
20479 20478 20478 20479 20474 20478 20480 20474 20475 20493 20482 20476 20481 20484 20489
20477 20476 20480 20480 20474 20475 20478 20480 20476 20481 20478 20493 20484 20505 20504
20475 20477 20476 20483 20475 20471 20483 20493 20474 20485 20477 20503 20483 20501 20483
20480 20483 20478 20481 20475 20476 20478 20481 20477 20485 20484 20478 20482 20482 20486
20474 20475 20482 20479 20479 20475 20480 20480 20476 20482 20486 20475 20483 20504 20485
20477 20474 20483 20479 20474 20475 20479 20479 20470 20475 20483 20475 20480 20483 20482
20475 20474 20479 20482 20475 20476 20479 20477 20479 20480 20480 20497 20479 20483 20486

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 20485 bytes 100%
1,000 20478 bytes -7 bytes 100%
10,000 20472 bytes -6 bytes 100%
100,000 20470 bytes -2 bytes 0.87%
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
20572 bytes +102 bytes (+0.50%) +15 bytes
20636 bytes +166 bytes (+0.81%) +79 bytes
20563 bytes +93 bytes (+0.45%) +6 bytes
20572 bytes +102 bytes (+0.50%) +15 bytes
20557 bytes +87 bytes (+0.43%)
20566 bytes +96 bytes (+0.47%) +9 bytes
20593 bytes +123 bytes (+0.60%) +36 bytes
20616 bytes +146 bytes (+0.71%) +59 bytes
20629 bytes +159 bytes (+0.78%) +72 bytes

Non-DEFLATE Algorithms

Archivers based on completely different compression algorithms often produce superior results.
Unfortunately, browsers only support gzip compression at the moment.
However, support for Brotli is constantly growing - but your browser doesn't support it.
Algorithm Program Parameters Size Compared To Best Zopfli
ZPAQ (Wikipedia) zpaq zpaq -method 69 17399 bytes -3071 bytes (-15.00%)
RAR (proprietary) RAR rar a -m5 -md64m -mc63:128t -mt1 17702 bytes -2768 bytes (-13.52%)
PPMd (Wikipedia) 7zip 7za a -mx=9 -m0=ppmd 18825 bytes -1645 bytes (-8.04%)
Brotli (Wikipedia) brotli brotli -q 11 19350 bytes -1120 bytes (-5.47%)
LZMA2 (Wikipedia) xz xz -9 19764 bytes -706 bytes (-3.45%)
Burrows-Wheeler transform (Wikipedia) bzip2 bzip2 -9 19913 bytes -557 bytes (-2.72%)
Zstandard (Wikipedia) zstd zstd -19 20402 bytes -68 bytes (-0.33%)

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 2018.
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