This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Script Compressor

Description

This plugin compresses javascript files and CSS files loaded by the theme or other plugins automatically.
Extra spaces, lines, and comments will be deleted.
The compressor is based on jscsscomp.

Features

  • Auto-compression for the blog header.
  • Template tags which provide javascript compression.
  • You can turn on/off compressions in the admin page.
  • Editable CSS compression condition.
  • You can select where to output scripts.
  • You can exclude scripts from the compression if necessary.

Screenshots

  • A part of the admin page.

Installation

  1. Upload the extracted plugin folder and contained files to your /wp-content/plugins/ directory
  2. Give the write permission to /wp-content/plugins/script-compressor/cache
    (Changed since version 1.4)
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Navigate to Settings -> Script Compressor

FAQ

CSS does not work!

After opening CSS directly by your browser, do super-reloading (Ctrl+F5).

After the deactivation of this plugin, the blog style is broken!

The mod_rewrite codes may remain in your .htaccess.
Please delete these lines in your .htaccess:

RewriteEngine on
RewriteRule ^(.*)\.css$ /path-to-wp/wp-content/plugins/script-compressor/jscsscomp.php?q=$1.css [NC,L]

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Script Compressor” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Script Compressor” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.7.1

  • Fixed IE conditional comment bug.
  • Fixed regex bug.

1.7

  • Added @import compression.
  • Added a new function «Remove cache files».

1.6.3

  • Added some document about the deactivation.

1.6.2

  • Fixed Javascript position bug.

1.6.1

  • Added the auto-compression of theme scripts.

1.6

  • Added a new option «Exclude Javascripts».
  • Added a new option «Output Position».

1.5.1

  • WordPress2.7 support.

1.5

  • Addied a new option «Position of Javascripts».

1.4.4

  • Fixed a bug about the condition of CSS compression.

1.4.3

  • Fixed a bug about .htaccess.
  • Added a .htaccess permission check.

1.4.2

  • Fixed a bug CSS compression cannot be deactivated.
  • Added a permission check message.

1.4.1

  • Fixed a bug admin css files breaking.

1.4

  • Added a new CSS compression method.
  • Added a Gzip option.
  • Changed the output charset into that of WP.

1.3.1

  • Maked external Javascripts not picked up.
  • Some bug fixs.

1.3

  • Maked .htaccess in this plugin unnecessary.

1.2

  • Fixed a bug that URL with parameters breaks output.

1.1.1

  • Added CSS compression condition.

1.1

  • Added a selecting charaset function.
  • Improved Javascript regex.

1.0

  • Initial release.