PHP Classes

JavaScript Compressor: Pack JavaScript code to reduce its size

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 3,856 This week: 1All time: 829 This week: 560Up
Version License Categories
javascriptcompressor 1.0GNU General Publi...Text processing, Compression
Description 

Author

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.

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
Picture of Andrea Giammarchi
Name: Andrea Giammarchi <contact>
Classes: 17 packages by
Country: Italy Italy
Age: 45
All time rank: 192 in Italy Italy
Week rank: 106 Down3 in Italy Italy Down
Innovation award
Innovation award
Nominee: 5x

  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

Downloadjavascriptcompressor-2006-08-10.zip 14KB
Downloadjavascriptcompressor-2006-08-10.tar.gz 11KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
SourceMap Download .zip .tar.gz Generates the JS source code map. Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,856
This week:1
All time:829
This week:560Up
User Ratings User Comments (1)
 All time
Utility:78%StarStarStarStar
Consistency:78%StarStarStarStar
Documentation:71%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:2106
 
There is a concern related to the encoding.
12 years ago (Jaime Rubio)
67%StarStarStarStar