
內容簡介
這個外掛程式可以偵測所有透過 wp_enqueue_style 載入的樣式表,並將每個樣式表的內容複製並儲存到一個單一的樣式表中。在前端載入此樣式表,並使用 wp_dequeue_style 和 wp_deregister_style 取消載入所有其他樣式表,這樣就只需要一個 http 請求來載入 CSS 樣式,同時樣式表內容也經過縮小化。只需按一下開關,這個外掛程式就會自動處理。注意:作者只在自己運行的 AdSense 主題上進行測試,如果您遇到問題,請告訴作者,作者將能夠幫助您。
外掛標籤
開發者團隊
原文外掛簡介
This plugins detects all of the styles queued via wp_enqueue_style. Contents of each css file are copied and stored in a single css file. This file is loaded on the frontend. The plugin wp_dequeue_style and wp_deregister_style all other css files. The result is your website only makes one single http request to load css styling. Bonus feature the contents of the css file are minified.
Simply flip the switch and the plugin will do the rest.
NOTE: I have only tested this plugin on my own sites running the AdSense Theme. If you encounter a problem with this plugin please let me know. I will be able to help you.
