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

  Author Author  
Picture of Andrea Giammarchi
Name: Andrea Giammarchi <e-mail contact>
Packages: 17 Browse all classes by Andrea Giammarchi Browse all classes by
Country: Italy Italy - PHP jobs in Italy
Age: 35
All time rank: 182 in Italy Italy
Week rank: 64 Down3 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: 3768 users
All time rank: 769
Week users: 4 users
Week rank: 602 Up
 
  Groups   Rate classes User ratings   Dependencies  
  Trackback   Applications   Related links   Files Files  

  Groups  
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.2%) Sufficient (79.2%) Sufficient (70.8%) - - - Not sure (54.6%) 1257
Month: Not yet rated by the users

  Packages needed by this class  
Class Dependency Why it is needed
SourceMap Required Generates the JS source code map.

  Trackback links  
Link Description
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...

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

  Related links  
Link Description
devpro personal codes and updates
JSDateChooser 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.