MeanFreePath JavaScript Code CompactorThis 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 showIn 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. SemicolonsAll statements should have semicolons after them where appropriate—much like C/C++ or PHP/Java. FunctionsPrototype 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. Rightif(myvar == 1) {
alert('myvar equals 1!');
}
Wrongif(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 |
|