Choose a version:
13% The original file has 1371804 bytes (1,339.7k) and is available from the project website.
There you can find the official minified version, too, which brings down the size to 176200 bytes (172.1k, 13%).

After GZIP compression these minified files vary in size:
unpkg
  72955 bytes (71.2k)
CDN
Boot
  62116 bytes (60.7k)
CDN
cdnjs
  62116 bytes (60.7k)
CDN
Google
  61975 bytes (60.5k)
CDN
gzip -6 (default)
  61648 bytes (60.2k)
local copy
gzip -9
  61496 bytes (60.1k)
local copy
libdeflate -12
  59668 bytes (58.3k)
local copy
7zip -mx=9 -tgzip
  59634 bytes (58.2k)
local copy
kzip -s0 -rn -b8
  59603 bytes (58.2k)
local copy
zultra
  59586 bytes (58.2k)
local copy
pigz -11 -n
  59536 bytes (58.1k)
local copy
Zopfli
  59477 bytes (58.1k)
local copy

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

You will automatically get the smallest AngularJS 1.7.7 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 2498 bytes by using my AngularJS 1.7.7 Zopfli version instead of the best available CDN (4.20% smaller than Google, 59477 vs. 61975 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 --mls512 --bsr25 --lazy --ohh

(found February 9, 2019)
Description Value Parameter
iterations 1000000  --i1000000
maximum blocks 8  --mb8
maximum length score 512  --mls512
block splitting recursion 25  --bsr25
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://code.angularjs.org/1.7.7/angular.min.js --location | md5sum
21da20ee83a7958c8af0051be0c979f4  -
curl --silent --compressed https://minime.stephan-brumme.com/files/angularjs/angular-1.7.7.min.zopfli.js.gz | md5sum
21da20ee83a7958c8af0051be0c979f4  -

SHA1:
curl --silent --compressed https://code.angularjs.org/1.7.7/angular.min.js --location | sha1sum
d1f3d7889f2673523c3cd00f3f9012684f2367e5  -
curl --silent --compressed https://minime.stephan-brumme.com/files/angularjs/angular-1.7.7.min.zopfli.js.gz | sha1sum
d1f3d7889f2673523c3cd00f3f9012684f2367e5  -

All listed CDNs deliver identical contents:
CDN Size (compressed) MD5 (uncompressed) Timestamp
unpkg 72955 bytes 21da20ee83a7958c8af0051be0c979f4 (invalid)
Boot 62116 bytes 21da20ee83a7958c8af0051be0c979f4 February 7, 2019 @ 10:15
cdnjs 62116 bytes 21da20ee83a7958c8af0051be0c979f4 February 7, 2019 @ 10:15
Google 61975 bytes 21da20ee83a7958c8af0051be0c979f4 February 11, 2019 @ 20:15

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

Other Versions

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

1.8.2, 1.8.1, 1.8.0,
1.7.9, 1.7.8, 1.7.7, 1.7.6, 1.7.5, 1.7.4, 1.7.3, 1.7.2, 1.7.1, 1.7.0,
1.6.10, 1.6.9, 1.6.8, 1.6.7, 1.6.6, 1.6.5, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6.0,
1.5.11, 1.5.10, 1.5.9, 1.5.8, 1.5.7, 1.5.6, 1.5.5, 1.5.4, 1.5.3, 1.5.2, 1.5.1, 1.5.0,
1.4.14, 1.4.13, 1.4.12, 1.4.11, 1.4.10, 1.4.9, 1.4.8, 1.4.7, 1.4.6, 1.4.5, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4.0,
1.3.20, 1.3.19, 1.3.18, 1.3.17, 1.3.16, 1.3.15, 1.3.14, 1.3.13, 1.3.12, 1.3.11, 1.3.10, 1.3.9, 1.3.8, 1.3.7, 1.3.6, 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0,
1.2.32, 1.2.31, 1.2.30, 1.2.29, 1.2.28, 1.2.27, 1.2.26, 1.2.25, 1.2.24, 1.2.23, 1.2.22, 1.2.21, 1.2.20, 1.2.19, 1.2.18, 1.2.17, 1.2.16, 1.2.15, 1.2.14, 1.2.13, 1.2.12, 1.2.11, 1.2.10, 1.2.9, 1.2.8, 1.2.7, 1.2.6, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0,
1.1.5, 1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1.0,
1.0.8, 1.0.7, 1.0.6, 1.0.5, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0,
0.10.6, 0.10.5, 0.10.4, 0.10.3, 0.10.2, 0.10.1, 0.10.0,
0.9.19, 0.9.18, 0.9.17, 0.9.16, 0.9.15, 0.9.14, 0.9.13, 0.9.12, 0.9.11, 0.9.10, 0.9.9, 0.9.8, 0.9.7, 0.9.6, 0.9.5, 0.9.4, 0.9.3, 0.9.2, 0.9.1, 0.9.0

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

Changelog

Best Zopfli parameters so far:
Size Improvement Parameters Found
59477 bytes -1 byte zopfli --i1000000 --mls512 --bsr25 --lazy --ohh February 9, 2019 @ 19:38
59478 bytes -1 byte zopfli --i1000000 --mls512 --bsr23 --lazy --ohh February 9, 2019 @ 19:06
59479 bytes -5 bytes zopfli --i100000 --mls512 --bsr23 --lazy --ohh February 8, 2019 @ 13:52
59484 bytes -1 byte zopfli --i10000 --mls512 --bsr23 --lazy --ohh February 7, 2019 @ 16:57
59485 bytes -4 bytes zopfli --i10000 --mls8192 --bsr17 --lazy --ohh February 7, 2019 @ 14:37
59489 bytes -1 byte zopfli --i1000 --mls512 --bsr21 --lazy --ohh February 7, 2019 @ 11:15
59490 bytes -1 byte zopfli --i1000 --mls512 --bsr25 --lazy --ohh February 7, 2019 @ 11:11
59491 bytes -12 bytes zopfli --i1000 --mls512 --bsr10 --lazy --ohh February 7, 2019 @ 11:09
59503 bytes zopfli --i100 --mls1024 --bsr23 --lazy --ohh February 7, 2019 @ 10:59

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:50.

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
59546 59549 59556 59564 59530 59522 59551 59559 59524 59512 59650 59650 59649 59650 59558
59549 59548 59551 59549 59531 59541 59523 59525 59505 59511 59519 59518 59517 59532 59518
59546 59550 59550 59551 59549 59521 59551 59512 59505 59516 59520 59506 59520 59517 59518
59535 59540 59540 59538 59534 59562 59522 59513 59505 59517 59514 59504 59521 59516 59517
59548 59539 59542 59536 59540 59541 59544 59493 59510 59509 59517 59514 59505 59519 59531
59550 59550 59553 59550 59533 59539 59521 59521 59505 59507 59494 59506 59515 59511 59535
59548 59521 59520 59520 59520 59522 59507 59492 59482 59488 59494 59489 59516 59506 59517
59520 59521 59519 59520 59515 59520 59501 59492 59480 59488 59493 59499 59497 59516 59519
59550 59550 59552 59550 59517 59504 59492 59493 59486 59490 59494 59489 59517 59521 59542
59519 59519 59517 59520 59517 59514 59506 59491 59498 59490 59488 59487 59516 59489 59542
59517 59518 59522 59522 59516 59517 59493 59495 59490 59487 59501 59488 59502 59493 59498
59518 59524 59516 59518 59515 59516 59504 59492 59486 59487 59495 59494 59497 59491 59500
59520 59520 59519 59529 59511 59523 59498 59501 59501 59488 59501 59489 59497 59488 59500
59521 59518 59518 59524 59516 59521 59490 59492 59491 59488 59493 59495 59481 59491 59499
59518 59515 59518 59522 59517 59520 59502 59499 59481 59487 59494 59486 59497 59491 59490
59515 59517 59517 59520 59516 59524 59550 59498 59486 59487 59486 59487 59517 59486 59529
59517 59516 59538 59518 59533 59521 59500 59500 59501 59487 59502 59487 59517 59491 59518
59517 59518 59518 59521 59516 59518 59505 59491 59481 59489 59490 59487 59516 59504 59518
59517 59518 59518 59519 59516 59520 59502 59500 59498 59488 59498 59487 59515 59507 59518
59520 59516 59517 59519 59515 59520 59501 59494 59478 59488 59491 59486 59518 59490 59517
59518 59518 59516 59520 59515 59522 59500 59501 59477 59488 59491 59486 59516 59516 59518
59516 59518 59519 59521 59516 59521 59503 59492 59487 59498 59491 59488 59498 59500 59488
59519 59517 59523 59523 59532 59526 59524 59492 59486 59492 59501 59517 59496 59499 59489

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 59503 bytes 100%
1,000 59489 bytes -14 bytes 100%
10,000 59484 bytes -5 bytes 100%
100,000 59479 bytes -5 bytes 2.03%
1,000,000 59477 bytes -2 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
59658 bytes +181 bytes (+0.30%) +55 bytes
59656 bytes +179 bytes (+0.30%) +53 bytes
59639 bytes +162 bytes (+0.27%) +36 bytes
59651 bytes +174 bytes (+0.29%) +48 bytes
59679 bytes +202 bytes (+0.34%) +76 bytes
59668 bytes +191 bytes (+0.32%) +65 bytes
59656 bytes +179 bytes (+0.30%) +53 bytes
59676 bytes +199 bytes (+0.33%) +73 bytes
59603 bytes +126 bytes (+0.21%)

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 45821 bytes -13656 bytes (-22.96%)
RAR (proprietary) RAR rar a -m5 -md64m -mc63:128t -mt1 48437 bytes -11040 bytes (-18.56%)
PPMd (Wikipedia) 7zip 7za a -mx=9 -m0=ppmd 50291 bytes -9186 bytes (-15.44%)
Brotli (Wikipedia) brotli brotli -q 11 53907 bytes -5570 bytes (-9.36%)
Burrows-Wheeler transform (Wikipedia) bzip2 bzip2 -9 54624 bytes -4853 bytes (-8.16%)
LZMA2 (Wikipedia) xz xz -9 55540 bytes -3937 bytes (-6.62%)
Zstandard (Wikipedia) zstd zstd -19 56881 bytes -2596 bytes (-4.36%)

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.