Plugin Directory

!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.


Allows developers to compress (GZIP & JSMIN) JavaScript files as well as concatenate them into one single file.

  1. wp-js screenshot 1

    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 included 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.

  2. wp-js screenshot 2

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

  3. wp-js screenshot 3

    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>

  4. wp-js screenshot 4

    The admin section

  5. wp-js screenshot 5

    Adding a JavaScript file to a specifc post

Requires: 2.5.1 or higher
Compatible up to: 2.6.2
Last Updated: 7 years ago
Active Installs: 500+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.