Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tools for comparing minimized Javascript files [closed]

Tags:

I need to compare two minimized Javascript files. Most common diff viewers list differences per line, but this isn't useful when the script is compressed to a few lines.

Are there any good tools for comparing minimized Javascript files?

like image 877
Jørgen Avatar asked Dec 21 '11 11:12

Jørgen


People also ask

How to minify JavaScript files?

To minify JavaScript, try UglifyJS. The Closure Compiler is also very effective. You can create a build process that uses these tools to minify and rename the development files and save them to a production directory.

Should you minify JavaScript?

Minifying strips out all comments, superfluous white space and shortens variable names. It thus reduces download time for your JavaScript files as they are (usually) a lot smaller in filesize. So, yes it does improve performance. The obfuscation shouldn't adversely affect performance.

What is JavaScript Minification test?

What is it? Checks if any external javascript files used in your page is minified. Minified files reduce page size and overall load time.

What are Minified JavaScript files?

Minification is the process of minimizing code and markup in your web pages and script files. It's one of the main methods used to reduce load times and bandwidth usage on websites. Minification dramatically improves site speed and accessibility, directly translating into a better user experience.


1 Answers

Pretty Diff tool will diff two minified files or a minified to a beautified file with a single button click.

http://prettydiff.com/

It operates by first minifing files to remove comments and the beautifies the source code before running its diff algorithm. This is my tool, so if this does not do what you need I do take requests.

like image 148
austincheney Avatar answered Sep 22 '22 01:09

austincheney