ปลั๊กอินตัวนี้ชื่อว่า WP CSS Gzip ในทางศัพท์ทางคอมพิวเตอร์ก็คือ โปรแกรมบีบอัดข้อมูล ที่มีขนาดใหญ่ให้มีขนาดเล็กลง ซึ่งทางอินเตอร์เน็ตก็คือ เมื่อข้อมูลมีขนาดเล็กก็จำให้โหลดเพจได้อย่างรวดเร็วขึ้น WP CSS การทำงานของระบบคือ บับอัด CSS และ JS ที่ทำหน้าที่เก็บตัวแปลการแสดงผลของแท็กต่างๆ ในเว็บเพจ ให้มีขนาดเล็กลงและจะทำให้โหลดเว็บเพจได้อย่างเร็วขึ้นนั้นเอง การที่คุณจะสามารถใช้ปลั๊กอินตัวนี้ได้นั้น Server ของคุณก็ต้องรองรับบระบบ Gzip นี้ด้วย นั่นคือ Server ต้องติดตั้ง Module Gzip ด้วยจึงจะสามารถใช้งานส่วนนี้ได้ แต่ยังไงหละมันก็ต้องแลกมาด้วยการกิน CPU ของ Server เช่นกัน แต่ข้อดีของมันคือความเร็ว ในการดาวน์โหลดเพจอย่างเห็นได้ชัด บล็อกนี้ผมไม่ได้ติดตั้งนะครับ
This plugin GZIP and strip whitespace from your CSS files. It allows you to confidently use @import inside a CSS file and not worry about what happens on the user’s end. It will look through your style.css file and put any @import files into it. A cache expiry time can also be set.
NEW: * SECURITY PATCH – please update the plugin. (Thanks to Dario Caregnato) * Will now work with Child Themes (Thanks to Wupperpirat)
Now in version 2.0 you can add CSS files to a specific page or post and putting all of them into one file.
Version 2.0
* Ability to add CSS files to specific page/post
* Improved security
* Reduced URL outputted
The default style.css is scanned automatically.
ผลการทดสอบ
WP CSS

WP JS

วิธีติดตั้ง
1. Upload wp-css folder to the /wp-content/plugins/ directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Set the permissions for /wp-css/ folder to 777
4. Go to Settings > WP CSS in the admin site. This setup the plugin.
5. Your default stylesheet (style.css) is automatically scanned
6. Use<?php wp_css('path/to/css/file.css'); ?>to link to other css files
i.e.
<link rel="stylesheet" href="<?php wp_css('path/to/css/file.css'); ?>" type="text/css" media="screen" />

Comments