PackJS is a web-based JavaScript compressor service that reduces the size of a js source file.
It uses a combination of techniques to achieve a significant compression when compared to other
common methods. See example for an
illustration.
First-order advantages include:
* Faster loading times
* Lower storage requirements
* Source obfuscation (e.g. IP protection)
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).
This reduction is extraordinary when compared to other existing methods:
Compression for jquery-3.7.1: | |
original |
|
terser |
|
packjs |
|
Reduced 66% from 278.63 kB to 95.58 kB. |