mini version of javascript file

Comments · 221 Views

Many javascript file will have two version normal and mini version.
Normal will be understandable where the reader may understand the flow of javascript as per below.

Many javascript file will have two version normal and mini version.

Normal will be understandable where the reader may understand the flow of javascript as per below.

function write()
{
alert("good work fine!!!!!!!!");
}

Some javascript file will be mini version , it would be as

function write()(alert("good work find!!!!!!!!!!");}

Reason behind the release the mini version,

  • find the difference between the normal and mini, it would be enter space will be find in the noraml where as mini will not have
  • because if you use the enter space for every line, it will alocated the character of  \.
  • This character will be take the size of 2kilobyte
  • If you are have 1000 line of code in javascript, then the calcualtion will be


2*1000=2000kb=2MB.

Let us the consider the user request the website using the noraml version of javascript, unwantedly extra 2mb size of downloading the enter space. It is waste of the data usage for end user.

So, the mini version of any file will be effective and useful of the user's data consumption.

Comments