這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

JS & CSS Script Optimizer

外掛說明

Features

  • Grouping several scripts into single file (to minimize http requests count)
  • Combine several CSS files into single files (with grouping by “media”)
  • Pack scripts using Dean Edwards’s JavaScript Packer or Minify (by Steve Clay)
  • Minify CSS files (remove comments, tabs, spaces, newlines)
  • Support conditional JS and CSS (html5.js, IE CSS, <!–[if lt IE 9]>)
  • Support JavaScript L10n / I18n (wp_localize_script)
  • Put JavaScript at bottom
  • Ability to include JavaScript and CSS files
  • Network / WPMU support

Requirements

  • Cache directory /wp-content/cache/ should be writable
  • This Plugin processing only those scripts that are included properly (using “wp_enqueue_script” or “wp_enqueue_style” function)
  • Read Including CSS & JavaScript
  • If any script fails and web-browser console shows errors you can add this JS to exclude list

For more info visit http://4coder.info/en/code/wordpress-plugins/js-css-script-optimizer/.

螢幕擷圖

  • Plugin settings page
  • Ability to include JavaScript files
  • Ability to include CSS files
  • YSlow speed test before installation
  • YSlow speed test after installation

安裝方式

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

Installation Instructions
  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

使用者評論

2018 年 9 月 17 日
El plugin es bueno, mejora un poco el rendimiento del sitio. Pero no funciona bien con Divi
2018 年 1 月 17 日
Всё прекрасно оптимизируется и никаких глюков. Рекомендую всем. PageSpeed Insights - реальное улучшение показателей.
2017 年 8 月 3 日
This works well but only had problems with " Dean Edwards Packer" minify option, but everything work well when I change that to " Minify by Steve Clay" Now I can't tell if this is a problem with the plugin or some .js files have unclosed endings/errors ...
閱讀全部 58 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈JS & CSS Script Optimizer〉的開發相關工作。

參與者

將〈JS & CSS Script Optimizer〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.3.3

  • HTTP timeout option added (for wp_remote_get function)
  • The issue with image backgrounds was fixed
  • Notices “Undefined variable: group” are eliminated

0.3.2

  • Added new JS paker “Minify” (by Steve Clay)
  • More comfortable admin options

0.3.1

  • Translated into Serbian language (by Borisa Djuraskovic)

0.3.0

  • Relative “Cache directory” path
  • Ready to translate (PO file added)

0.2.9

  • “wp_remote_get” methods exception was handled
  • Notices in WP_DEBUG mode are eliminated

0.2.8

  • Support JavaScript L10n (wp_localize_script)
  • Support conditional JS (html5.js, <!–[if lt IE 9]>)
  • Disable plugin when define(‘SCRIPT_DEBUG’, true);

0.2.7

  • Ability to change cache directory from the plugin settings
  • Default cache directory changed to “wp-content/cache/scripts”
  • Cache directory creation bug were fixed

0.2.6

  • Better compatibility with others plugins and themes
  • Support conditional CSS (IE CSS, <!–[if lt IE 9]>)
  • Dean Edwards’s packer was updated
  • Using “wp_remote_get” instead of “file_get_contents”
  • Do not pack JS which already packed
  • More correct (save) ordering

0.2.5

  • Better compatibility with other plugins (betta)
  • Plugin options updated
  • Some minor changes/fixes

0.2.4

  • Added WPMU / Network support
  • CSS compression bug has been fixed
  • Some minor changes/fixes

0.2.3

  • CSS compression has been improved
  • Ability to add CSS files only for logged in users
  • Some minor changes/fixes

0.2.2

  • Some cache problems are fixed

0.2.1

  • Some cache issues
  • CSS processing problems

0.1.7

  • Bug with options saving

0.1.4

  • Added helpful information
  • Some bugs are fixed

0.1.3

  • CSS grouping has been updated

0.1.2

  • Ability to include JavaScript and CSS scripts has been added

0.1.0

  • Release version!

0.0.2

  • Beta version of the JS & CSS Script Optimizer