Difference between min and no min in a javascript lib?

If you want to include a library in HTML there are always two versions, example:

….min.matter.js

or

…matter.js

What is the difference?

Mfg White Bread

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
3 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
JanaL161
11 months ago

The former was “Miniified”, i.e. all variables and function names were rewritten into individual letters, all spaces in the code removed, etc.

This saves bandwidth and is a bit harder to steal, but I like to read what my browser does. Especially in the development of a page you should take the big version.

https://www.cloudflare.com/learning/performance/why-minify-javascript-code/

https://www.digitalocean.com/community/tools/minify

Suiram1
11 months ago

The min stands for minimized. This means that all unnecessary such as comments, empty lines, distances, etc. have been removed and also variable names in methods have been replaced by individual letters.

Quetschtuete
11 months ago

.min versions are minified version (here .min), which means that these libraries were made smaller, and the debugging information were removed, so they were “unready made”. This is best suited for production

Normal versions without .min are development versions as they contain debugging information and are larger.