Login   Register  
PHP Classes
elePHPant
Icontem

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
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-08-10 (8 years ago) RSS 2.0 feedStarStarStar 54%Total: 3,800 This week: 1All time: 785 This week: 1,319Down
Version License Categories  
javascriptcompressor 1.0GNU General Public Lice...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: 36
All time rank: 182 in Italy Italy
Week rank: 47 Down2 in Italy Italy Equal
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,800All time:785
 This week:1This week:1,319Down
User Ratings User Comments (1)  
 All time
Utility:79%StarStarStarStar
Consistency:79%StarStarStarStar
Documentation:70%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:1297
 
There is a concern related to the encoding.
3 years ago (Jaime Rubio)
67%StarStarStarStar