このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Script Compressor

説明

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.

スクリーンショット

  • A part of the admin page.

インストール

  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]

評価

このプラグインにはレビューがありません。

貢献者と開発者

Script Compressor はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Script Compressor” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

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.