[WordPress] 外掛分享: WP-Compress-HTML

首頁外掛目錄 › WP-Compress-HTML
30+
安裝啟用
★★★★★
5/5 分(1 則評價)
5170 天前
最後更新
問題解決
WordPress 2.5+ v1.0 上架:2008-05-15

內容簡介

程式設計師喜歡使用空格、換行符號、新行、tab、縮進等來使他們的 HTML 文件更容易閱讀。這有助於協作和除錯 HTML 文件。但是,所有這些特性都會增加 HTML 文件的檔案大小,而這種結構性資訊對於瀏覽器而言是完全被忽略的。

此外掛可將空格、換行符號、新行和 TAB 從 HTML 文件中移除,因此您可以在撰寫 HTML 時放心地使用這些功能,而不會膨脹最終的 HTML 文件。

這個外掛還能標記 HTML 模板的區域,以保留您希望保留的空白 - 例如JavaScript必須具備換行符號及新行的地方。

此外,此外掛不會影響 HTML 註解。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP-Compress-HTML」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Coders like to use spaces, carriage returns, new lines, tabs and indentation to make their HTML documents human-readable. This helps collaboration and debugging of the HTML document. However, all these features add to the filesize of the resultant HTML document. This structural information is totally ignored by browsers.
This plugin removes spaces, carriage returns, new lines and tabs from your HTML document. You can therefore freely use these features while writing HTML, safe in the knowledge that it will not bloat the final HTML document.
With this plugin you can also mark areas of your HTML template where you want to preserve white space – for example – in areas containing Javascript which needs carriage returns and new lines to function correctly.
HTML comments are not affected by this plugin.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon