Script Compressor

4 月 30th, 2008

WordPress プラグインの、Script Compressor を公開しました。

テーマや他のプラグインによって読み込まれるJavaScriptとCSSの圧縮を自動的に行うプラグインです。

ダウンロードはScript Compressor « WordPress Plugins

  • 2009/6/18 バージョン1.6.3公開
    • プラグイン無効化時におけるドキュメントを追加
  • 2009/4/28 バージョン1.6.2公開
    • Javascript出力位置のバグを修正
  • 2009/4/28 バージョン1.6.1公開
    • ヘッダーの自動圧縮でヘッダー全体が圧縮されるように変更
  • 2009/2/4 バージョン1.6公開
    • 圧縮しない Javascript を指定できるオプション追加
    • 圧縮した Javascript をフッターへ出力するオプション追加
  • 2008/12/29 バージョン1.5.1公開
    • WordPress2.7に対応
  • 2008/10/18 バージョン1.5公開
    • “Javascriptの位置”オプション追加
  • 2008/8/28 バージョン1.4.4公開
    • CSS圧縮条件のバグを修正
  • 2008/7/31 バージョン1.4.3公開
    • .htaccess 周りのバグを修正
    • .htaccess の書き込み権限チェックを追加
  • 2008/7/29 バージョン1.4.2公開
    • CSS圧縮が無効化できないバグを修正
    • キャッシュディレクトリーのパーミッションチェックを追加
  • 2008/7/28 バージョン1.4.1公開
    • 管理画面のCSSが崩れる問題を修正
  • 2008/7/28 バージョン1.4公開
    • CSS 圧縮の方法を追加、選択できるようにしました
    • Gzip 圧縮の選択を追加
    • WordPressの文字コードと合わせるようにしました
  • 2008/5/7 バージョン1.3.1公開
    • Javascript検知の正規表現の見直しにより、外部JSを拾わなくなりました
    • その他少し改良
  • 2008/5/5 バージョン1.3公開
    • 自動アップグレードを使用した場合に、.htaccess が転送されない仕様(?)に対処
  • 2008/5/5 バージョン1.2公開
    • URLに引数が含まれるとファイルが途切れるバグ修正
  • 2008/5/3 バージョン1.1.1公開
    • CSS圧縮する条件を記述できる機能追加
  • 2008/5/2 バージョン1.1公開
    • 文字コード選択機能追加
    • Javascript検知の正規表現の見直し
  • 2008/4/30 バージョン1.0公開

English version

Script Compressor is a WordPress plugin which compresses javascript files and CSS files loaded by the theme or other plugins automatically.

Download it in Script Compressor « WordPress Plugins.

  • June 18, 2009 - Version 1.6.3
    • Adding some document about the deactivation.
  • April 28, 2009 - Version 1.6.2
    • Fixing Javascript position bug.
  • April 28, 2009 - Version 1.6.1
    • Adding the auto-compression of theme scripts.
  • February 4, 2009 - Version 1.6
    • Adding a new option “Exclude Javascripts”.
    • Adding a new option “Output Position”.
  • December 29, 2008 - Version 1.5.1
    • WordPress2.7 support.
  • October 18, 2008 - Version 1.5
    • Adding a new option “Position of Javascripts”.
  • August 28, 2008 - Version 1.4.4
    • Fixing a bug about the condition of CSS compression.
  • July 31, 2008 - Version 1.4.3
    • Fixing a bug about .htaccess.
    • Adding a .htaccess permission check.
  • July 29, 2008 - Version 1.4.2
    • Fixing a bug CSS compression cannot be deactivated.
    • Adding a permission check message.
  • July 28, 2008 - Version 1.4.1
    • Fixing a bug admin css files breaking.
  • July 28, 2008 - Version 1.4
    • Adding a new CSS compression method.
    • Adding a Gzip option.
    • Changing the output charset into that of WP.
  • May 7, 2008 - Version 1.3.1
    • Making external Javascripts not picked up
    • Some bug fixs
  • May 5, 2008 - Version 1.3
    • Making .htaccess in this plugin unnecessary
  • May 5, 2008 - Version 1.2
    • Fixing a bug that URL with parameters breaks output
  • May 3, 2008 - Version 1.1.1
    • Adding CSS compression condition
  • May 2, 2008 - Version 1.1
    • Adding a selecting charaset function
    • Improving Javascript regex
  • Apr 30, 2008 - Version 1.0

関連記事

  1. 4 月 28th, 2009 at 17:30 | #1

    The PHP warning was was my mistake. I released the new version in which this plugin compresses the scripts including theme scripts in the header. So you don’t have to use the template tags in the header. Please check.

  2. Joe Pea
    6 月 18th, 2009 at 11:23 | #2

    VERY BAD BUG FOUND!

    When the plug in is deactivated in WP 2.8, it causes all CSS to fail across the entire site. This needs to be fixed! My site is all screwed up now :(

  3. Joe Pea
    6 月 18th, 2009 at 11:57 | #3

    –So basically, my website is down. I was disabling Script Compressor to troubleshoot my CSS so that it works when enabled. Currently, there seems to be PHP code left behind after the plug in was deactivated.

    –After deleting the plugin completely, both Admin and my Blog remained with no style. Here’s the screen shots:

    http://bettafootwear.com/tempDELETE/No-style-admin.JPG
    http://bettafootwear.com/tempDELETE/No-style-blog.JPG

    –EVEN AFTER RE-INSTALL of wordpress, the bug persists. What should I do!? This is NOT good! :(

  4. Joe Pea
    6 月 18th, 2009 at 12:03 | #4

    Please notify me by email if you read my previous comments :) trusktr[at]gmail[dot]com

  5. Joe Pea
    6 月 18th, 2009 at 12:13 | #5

    Oh, and one more thing. When the plugin is re-activated, the CSS for admin control panel and blog works again (except with errors from the compression which is what i wanted to fix originally).

  6. Joe Pea
    6 月 18th, 2009 at 12:23 | #6

    Wait, Nevermind! I fixed it! I had to delete the line of code that was added to .htaccess for css compression and then everything returned to normal. Hehe, newbs out there will have some problems :P

  7. 6 月 18th, 2009 at 16:26 | #7

    I’m sorry. I noticed that the mod_rewrite codes remain and cause problems when .htaccess is not writable or the plugin is deactivated by removing the directory.
    I’m going to add some explanation to the document.

  8. Tasmany
    7 月 1st, 2009 at 03:52 | #8

    Script don’t compress JS and CSS like

    and

    @import url( ‘http:// blablabla /wp-content/plugins/devformatter/devfmt_reset.css?ver=2009.0.1.20′ );

    :(

Comment pages
  1. 5 月 4th, 2008 at 16:34 | #1
  2. 5 月 4th, 2008 at 23:08 | #2
  3. 5 月 5th, 2008 at 10:05 | #3
  4. 5 月 13th, 2008 at 20:11 | #4
  5. 5 月 13th, 2008 at 21:09 | #5
  6. 5 月 21st, 2008 at 00:50 | #6
  7. 7 月 23rd, 2008 at 20:09 | #7
  8. 7 月 29th, 2008 at 16:30 | #8
  9. 7 月 29th, 2008 at 19:34 | #9
  10. 8 月 12th, 2008 at 16:00 | #10
  11. 12 月 31st, 2008 at 11:15 | #11
  12. 12 月 31st, 2008 at 17:30 | #12
  13. 2 月 23rd, 2009 at 18:53 | #13
  14. 3 月 9th, 2009 at 09:05 | #14
  15. 4 月 13th, 2009 at 18:00 | #15
  16. 6 月 11th, 2009 at 15:14 | #16