MeanFreePath
MeanFreePath
Creating the Building Blocks of Web 2.0

MeanFreePath JavaScript Code Compactor

This page will strip out all tabs, newlines, comments (// and /* */), and unnecessary whitespace from your JavaScript code. This can dramatically reduce your code's size; reducing your site's bandwidth requirements and increasing your users' browsing speed.

It currently does not obsfucate your code, but the lack of newlines and indentation makes your code far more difficult for humans to read. Please be sure to check your code to make sure any license statements are not removed.

Code Guidelines show

In order for your JavaScript code to work properly after compaction, it MUST strictly adhere to standard JavaScript code syntax standards, as well as a few additional guidelines.

Semicolons

All statements should have semicolons after them where appropriate—much like C/C++ or PHP/Java.

Functions

Prototype and and functions assigned by pointer (i.e. myobject.myfunction = function() {...};) must have semicolons after their code blocks.

Code Blocks (if, else, for, while, etc…)

All code blocks must be encapsulated within brackets.

Right

if(myvar == 1) { alert('myvar equals 1!'); }

Wrong

if(myvar == 1) alert('myvar equals 1!');

The release versions of Epoch all conform to these standards, so if in doubt, use them as a template. No support is offered for this code compactor.

Paste Your Code Here