0

I have a external xxxx.js file where its contents are in non-understandable format.

Eg: {G(d&&!E.6c(d)){E.2A+=(E.2A?" ":"") etc.

I don't understand how this code has been done since I am new to this kind of development. Can anybody help me in finding this code??

Thanks...

2
  • That script must be minified. Commented May 23, 2012 at 12:22
  • this file has been minified and obfuscated. Commented May 23, 2012 at 12:22

3 Answers 3

1

Ask whomever provided you with the code for the development/debug version of it. The code you have has been optimised for size and isn't designed to be touched by hand.

Sign up to request clarification or add additional context in comments.

Comments

1

The code has been through a "minifier", designed to:

  1. make the code shorter
  2. obfuscate the code

Comments

0

This kind of code are because of the js is in the min form. min form of a js means that it is converted to minimum code as much as possible by shortenning the name of the variables and trimming spaces, removing comments, etc...

There are a number of reasons why compressing your javascript files is a good idea:

  1. Quicker download times for your users.
  2. Reduced bandwidth consumption of your website.
  3. Reduced number of HTTP requests on your server when combining many javascript files into one compressed file, thus reducing the server load and allowing more visitors to access your website.
  4. Comments and whitespace are not needed for javascript execution; Removing them will speed up script execution times.

1 Comment

find the full js on internet you will be find both the version js and min.js

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.