This plugin will GZIP and JSMIN your JavaScript files as well as allowing the ability to put JavaScript files into a single file at the client's end. Cache expiry time can also be set in the admin page.
Now in version 2.0 you can add JavaScript files to a specific page or post and putting all of them into one file.
This plugin will GZIP and JSMIN your JavaScript files as well as allowing the ability to put JavaScript files into a single file at the client's end. Cache expiry time is can also be set in the admin page.
/wp-js/ folder to the /wp-content/plugins/ directory/cache/ folder <?php wp_js('path/to/js/file.js'); ?> to compress a JavaScript file.This plugin makes JavaScript implementation easier in wordpress by allowing developers to combine JavaScript files together as well as compressing them.
Let's say we have the famous prototype and script.aculo.us JavaScript libraries. This is in total of 8 files and 247KB files size. Lets say we GZIP each file separately this turns the total into 63KB (74% decrease), which is a good decrease in size. However the user would still have to download 8 files. WP JS turns the files into a mere 45KB (82% decrease) download for the user. This plugin allows you push JavaScript development in terms of modularization and download sizes for Wordpress.

Tests were measured using a Firefox plugin called Firebug. Firefox was run a Mac Pro (2008) using OS X 10.5.3. Eight files were include in this test: builder.js, controls.js, dragdrop.js, effects.js, prototype.js, scriptaculous.js, slider.js and sound.js – all taken from the script.aculo.us website.
The plugin new feature scans through your current theme for any JavaScript files. It will display the files in directory order. Its very simple to use and allows you to combine all JavaScript files added into a single file.

The default behaviour is to specify one file for WP JS to compress and GZIP.
<script src="<?php wp_js('/javascript/global.js') ?>" type="text/javascript" charset="utf-8"></script>

However it is also possible to combine several files together. It is very easy and only requires that you comma separate files inside the string parameter.
<script src="<?php wp_js('/javascript/sifr-addons.js,/javascript/sifr.js') ?>" type="text/javascript" charset="utf-8"></script>

The admin section will allow you:
