PackJS is a web-based JavaScript compressor service that reduces the size of a js source file.
First-order advantages include:
* Faster loading times
* Lower storage requirements
* Source obfuscation (e.g. IP protection)
It employs a variety of techniques to achieve significant compression when compared to other methods.
See the example for an illustration.
PackJS was created by Antonio Roldao.
Using packjs, jquery-3.7.1 can be compressed down from 278k kB to 96k kB (a 66% reduction).
Compression for jquery-3.7.1: | |
original |
|
terser |
|
packjs |
|
This is an extraordinary reduction when compared to other existing methods. Try it for yourself.