Plugin Directory

WP JS

Author: Halmat Ferello

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.

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/

Download

FYI

Average Rating

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