Login   Register  
PHP Classes

JavaScript Compressor: Pack JavaScript code to reduce its size

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Andrea Giammarchi
Name: Andrea Giammarchi <contact>
Classes: 17 packages by
Country: Italy Italy
Age: 36
All time rank: 182 in Italy Italy
Week rank: 107 Down7 in Italy Italy Down
Innovation award
Innovation award
Nominee: 5x

  Detailed description   Download Download .zip .tar.gz  
This package can be used to pack JavaScript code to reduce its size.

It can remove comments, white space and convert the code to a more packed style.

There is also a class that can cache several packed JavaScript code files until they are changed to avoid the overhead of packing the same JavaScript files.

  Classes of Andrea Giammarchi  >  JavaScript Compressor  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: JavaScript Compressor
Base name: javascriptcompressor
Description: Pack JavaScript code to reduce its size
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 3780 users
All time rank: 773
Week users: 0 users
Week rank: 1463 Equal
  Groups   Rate classes User ratings   Dependencies  
  Trackback   Applications   Related pages   Files Files  

Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Compression Data compression and file archive manipulation View top rated classes

  Innovation Award  
PHP Programming Innovation award nominee
June 2006
Number 2

Prize: One book of choice by O'Reilly
The surge of interest on AJAX and other Javascript dependent applications lead to the development of large Javascript libraries that are served to the browsers.

Serving many Javascript files increases the bandwidth usage and the application loading overhead.

This class provides a solution that fights this problem by eliminating unnecessary data from Javascript files or using alternative representation of values that take less space.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (79%) Sufficient (79%) Sufficient (70%) - - - Not sure (54%) 1275
Month: Not yet rated by the users

  Packages needed by this class  
Class DownloadWhy it is needed Dependency
SourceMap Download .zip .tar.gz Generates the JS source code map. Required

  Pages that reference this package  
Deploy PHP like a Starfleet Commander
Ruby on Rails brought with it a lot of good practices in regards to code structure and maintenance. At least for me, my experience with RoR two years ago was the first time I’d used subversion and deployed my code (via capistrano)...
Javascript Compressor
Javascript compressors, or packers, are tools that compress the javascript file, saving bandwidth...
WP-Scripts 1.1
My “update” of the original WP-Scripts by Cheon Young Min, has been accepted into the Wordpress Plugin Repository...

Latest pages that reference packages Latest pages that reference packages

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
personal codes and updates
Example of a JS component that use JSCCacher

  Files folder image Files  
File Role Description
Plain text file BaseConvert.class.php Class Converts integer to base N
Plain text file JavaScriptCompressor.class.php Class Application core
Accessible without login Plain text file JSL.js Aux. Javascript Standard Library
Accessible without login Plain text file ABOUT Doc. About JavaScriptCompressor
Accessible without login Plain text file BaseConvert.py Aux. Python version
Plain text file JavaScriptCompressor.py Class Python version
Plain text file JSCCacher Class Caching example class

Download Download all files: javascriptcompressor.tar.gz javascriptcompressor.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.