Plugin Directory

WP JS

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

Download Version 2.0.6

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.

NEW: * SECURITY PATCH - please update the plugin. (Thanks to Dario Caregnato) * Will now work with Child Themes (Thanks to Wupperpirat)

Now in version 2.0 you can add JavaScript files to a specific page or post and putting all of them into one file.

Version 2.0

  • Ability to add JavaScript files to specific page/post
  • Improved security
  • Reduced URL outputted

Example

<script src="<?php wp_js('path/to/js/file.js'); ?>" type="text/javascript"></script>

OR you can also concatenate the JavaScript files (comma separated)

<script src="<?php wp_js('path/to/js/file.js, path/to/js/file2.js, path/to/js/file3.js'); ?>" type="text/javascript"></script>

Visit the WP JS site for more information: http://www.halmatferello.com/lab/wp-js/

Try the CSS version of the this plugin: http://wordpress.org/extend/plugins/wp-css/

Author: Halmat Ferello

Requires: 2.5.1 or higher
Compatible up to: 2.6.2
Last Updated: 2009-3-7 Downloads: 10,423

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(15 ratings)

Compatibility

+
=
Not enough data

0 people say it works.
1 person says it's broken.

Log in to vote.

100,1,1
100,1,1
100,1,1
0,1,0