هذه الإضافة لم يتم تحديثها وتجربتها لأكثر من 3 إصدارات ووردبريس رئيسية. قد لا تكون خاضعة للصيانة أو تقدم الدعم والمساعدة بالوقت الحالي وقد تكون بها مشاكل في التوافق عند إستخدامها مع إصدارات حديثة من ووردبريس.

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

الأسئلة المتكررّة

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.