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

After GZIP compression these minified files vary in size:
Boot
  26443 bytes (25.8k)
CDN
cdnjs
  23379 bytes (22.8k)
CDN
unpkg
  22385 bytes (21.9k)
CDN
gzip -6 (default)
  22380 bytes (21.9k)
local copy
gzip -9
  22315 bytes (21.8k)
local copy
jsdelivr
  22315 bytes (21.8k)
CDN
libdeflate -12
  21617 bytes (21.1k)
local copy
7zip -mx=9 -tgzip
  21573 bytes (21.1k)
local copy
zultra
  21549 bytes (21.0k)
local copy
kzip -s0 -rn -b2
  21546 bytes (21.0k)
local copy
pigz -11 -n
  21518 bytes (21.0k)
local copy
Zopfli
  21459 bytes (21.0k)
local copy

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

You will automatically get the smallest lodash 4.11.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 856 bytes by using my lodash 4.11.2 Zopfli version instead of the best available CDN (3.99% smaller than jsdelivr, 21459 vs. 22315 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 --i1000000 --mb8 --mls2 --bsr10 --lazy --ohh

(found April 23, 2016)
Description Value Parameter
iterations 1000000  --i1000000
maximum blocks 8  --mb8
maximum length score 2  --mls2
block splitting recursion 10  --bsr10
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.11.2/dist/lodash.min.js --location | md5sum
4b9eac73d7e94cff45d1e085af752777  -
curl --silent --compressed https://minime.stephan-brumme.com/files/lodash/lodash-4.11.2.min.zopfli.js.gz | md5sum
4b9eac73d7e94cff45d1e085af752777  -

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

These CDNs send you the original file:
CDN Size (compressed) MD5 (uncompressed) Timestamp
unpkg 22385 bytes 4b9eac73d7e94cff45d1e085af752777 July 13, 2016 @ 19:31
jsdelivr 22315 bytes 4b9eac73d7e94cff45d1e085af752777 (invalid)

And some CDNs send you a different file:
CDN Size (compressed) MD5 (uncompressed) Comment / Diff Timestamp
Boot 26443 bytes e1c1e7b7aaedf13563fd8c04723b1e2f < /**
< * @license
< * lodash 4.11.2 (Custom Build) lodash.com/license | Under [...]
< * 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){var r=t?t.length:0;return r?j(t,n [...]
< return t[n]})}function k(t,n){for(var r=-1,e=t.length;++r< [...]
[...]
May 4, 2016 @ 10:40
cdnjs 23379 bytes e1c1e7b7aaedf13563fd8c04723b1e2f < /**
< * @license
< * lodash 4.11.2 (Custom Build) lodash.com/license | Under [...]
< * 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){var r=t?t.length:0;return r?j(t,n [...]
< return t[n]})}function k(t,n){for(var r=-1,e=t.length;++r< [...]
[...]
(invalid)

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

Other Versions

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

4.17.21, 4.17.20, 4.17.19, 4.17.18, 4.17.17, 4.17.16, 4.17.15, 4.17.14, 4.17.13, 4.17.12, 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
21459 bytes -3 bytes zopfli --i1000000 --mls2 --bsr10 --lazy --ohh April 23, 2016 @ 00:38
21462 bytes -1 byte zopfli --i100000 --mls2 --bsr10 --lazy --ohh April 22, 2016 @ 10:40
21463 bytes -3 bytes zopfli --i100000 --mls2 --bsr17 --lazy --ohh April 22, 2016 @ 09:52
21466 bytes -5 bytes zopfli --i10000 --mls2 --bsr17 --lazy --ohh April 22, 2016 @ 09:18
21471 bytes -10 bytes zopfli --i1000 --mls2 --bsr17 --lazy --ohh April 22, 2016 @ 09:15
21481 bytes zopfli --i100 --mls2 --bsr17 --lazy --ohh April 22, 2016 @ 09:04

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

Most recent activity on July 20, 2020 @ 12:53.

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, 100,000 or 1,000,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
21503 21499 21505 21516 21524 21504 21528 21525 21524 21522 21516 21515 21513 21528 21521
21471 21477 21477 21490 21486 21499 21489 21508 21480 21473 21482 21489 21498 21491 21491
21477 21481 21477 21493 21484 21485 21477 21490 21490 21488 21477 21491 21491 21488 21486
21474 21480 21484 21475 21477 21479 21465 21511 21478 21484 21491 21484 21491 21507 21494
21476 21471 21477 21472 21488 21469 21479 21474 21478 21476 21475 21483 21495 21482 21496
21478 21480 21475 21475 21476 21475 21501 21480 21471 21487 21489 21490 21497 21509 21492
21459 21475 21476 21476 21481 21478 21486 21481 21477 21478 21481 21480 21491 21494 21482
21488 21476 21475 21485 21478 21495 21489 21491 21480 21481 21486 21493 21491 21509 21490
21473 21471 21473 21487 21473 21483 21487 21488 21481 21484 21480 21478 21491 21492 21483
21472 21469 21474 21481 21475 21472 21474 21515 21478 21476 21486 21496 21491 21488 21492
21473 21475 21472 21488 21483 21490 21476 21488 21471 21488 21478 21481 21497 21509 21491
21476 21473 21483 21494 21484 21477 21477 21481 21480 21472 21475 21482 21487 21509 21490
21474 21475 21477 21486 21479 21485 21480 21479 21479 21492 21478 21484 21494 21492 21493
21463 21476 21474 21485 21490 21488 21476 21478 21482 21477 21472 21493 21493 21489 21492
21479 21475 21472 21483 21473 21483 21483 21488 21471 21476 21478 21483 21492 21492 21491
21478 21479 21469 21477 21460 21487 21486 21484 21471 21478 21474 21477 21492 21506 21492
21472 21476 21471 21485 21479 21469 21480 21481 21481 21479 21477 21475 21491 21490 21489
21476 21476 21476 21472 21478 21487 21475 21480 21481 21480 21480 21482 21490 21494 21494
21471 21476 21469 21474 21485 21465 21471 21488 21480 21491 21480 21477 21490 21513 21493
21474 21475 21472 21472 21477 21485 21473 21489 21473 21485 21472 21479 21494 21494 21490
21472 21476 21477 21474 21472 21484 21472 21490 21476 21476 21490 21479 21490 21491 21482
21478 21480 21476 21473 21478 21485 21486 21480 21471 21472 21480 21477 21492 21491 21482
21477 21480 21477 21470 21475 21485 21471 21480 21476 21472 21480 21482 21492 21487 21489

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 21481 bytes 100%
1,000 21470 bytes -11 bytes 100%
10,000 21466 bytes -4 bytes 100%
100,000 21462 bytes -4 bytes 1.45%
1,000,000 21459 bytes -3 bytes 0.58%
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
21558 bytes +99 bytes (+0.46%) +12 bytes
21612 bytes +153 bytes (+0.71%) +66 bytes
21546 bytes +87 bytes (+0.41%)
21558 bytes +99 bytes (+0.46%) +12 bytes
21549 bytes +90 bytes (+0.42%) +3 bytes
21558 bytes +99 bytes (+0.46%) +12 bytes
21570 bytes +111 bytes (+0.52%) +24 bytes
21603 bytes +144 bytes (+0.67%) +57 bytes
21630 bytes +171 bytes (+0.80%) +84 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 18160 bytes -3299 bytes (-15.37%)
RAR (proprietary) RAR rar a -m5 -md64m -mc63:128t -mt1 18485 bytes -2974 bytes (-13.86%)
PPMd (Wikipedia) 7zip 7za a -mx=9 -m0=ppmd 18855 bytes -2604 bytes (-12.13%)
Brotli (Wikipedia) brotli brotli -q 11 20125 bytes -1334 bytes (-6.22%)
LZMA2 (Wikipedia) xz xz -9 20652 bytes -807 bytes (-3.76%)
Burrows-Wheeler transform (Wikipedia) bzip2 bzip2 -9 20779 bytes -680 bytes (-3.17%)
Zstandard (Wikipedia) zstd zstd -19 21347 bytes -112 bytes (-0.52%)

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

All trademarks are property of their respective owners. You know, the boring legal stuff.