Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between .js and .min.js? [duplicate]

I am using javascript graphic libraries for my project. In all libraries I am finding the files like

abc.js - abc.min.js
xyz.js - xyz.min.js

What does .min indicate? Is it some sort of syntax of making javascript libraries?

like image 819
Rai Ammad Khan Avatar asked Jun 13 '14 07:06

Rai Ammad Khan


People also ask

What is difference between JS and Min JS?

min. js is a compressed version of jquery. js (whitespaces and comments stripped out, shorter variable names, ...) in order to preserve bandwidth. In terms of functionality they are absolutely the same.

What is min JS in JavaScript?

js. A super tiny JavaScript library to execute simple DOM querying and hooking event listeners. Aims to return the raw DOM node for you to manipulate directly, using HTML5 (et al) tech like element. classList or element.

Why min JS is used?

min is the minified version, and it is primarily used while the website is being launched in order to reduce the load for the particular website. Basically all the long variable names and function names are converted into shorter ones during the process of minifying.

What is all min js?

min. js is the minified version of the jQuery source file. Minified files are optimized to take up less space, hence load faster. For example, the minified version of jQuery 3.2.


1 Answers

.min is the minified version, and it is primarily used while the website is being launched in order to reduce the load for the particular website.

Basically all the long variable names and function names are converted into shorter ones during the process of minifying. As consequence it would reduce the size of that particular file, so it would less the loading speed of the website.

On the other hand normal .js is the one which is used until the site being launched, meaning while the site in the mode of development/testing.

like image 78
Rajaprabhu Aravindasamy Avatar answered Oct 16 '22 10:10

Rajaprabhu Aravindasamy