
內容簡介
網路資源幫手的Asset Inliner 是一個針對實用前端資源優化的效能外掛:
- 從樣式表連結中內嵌本地前端CSS。
- 重寫相對 CSS 資源 URL,使得在內嵌後字型/圖片依然能正常運作。
- 選擇性的 CSS 最小化。
- 選擇性的 Google Fonts 本地化(偵測 Google Fonts 樣式表,下載字型檔案至本地上傳,重寫字型 URL 為本地檔案,並內嵌重寫後的字型 CSS)。
- 選擇性的字型展示策略覆寫,可應用於本地化 Google Fonts(keep、swap、optional、fallback、block)。
- 選擇性的預載標籤用於本地化 WOFF2 字型。
- 在文章/頁面儲存、刪除、主題切換、更新以及外掛設定更改時,自動執行快取破解。
Google Fonts 本地化是選擇性的,並且默認為關閉的。
HTML bulleted list:
<ul>
<li>從樣式表連結中內嵌本地前端CSS。</li>
<li>重寫相對CSS資源URL,使得在內嵌後字型/圖片依然能正常運作。</li>
<li>選擇性的CSS最小化。</li>
<li>選擇性的Google Fonts本地化(偵測Google Fonts樣式表,下載字型檔案至本地上傳,重寫字型URL為本地檔案,並內嵌重寫後的字型CSS)。</li>
<li>選擇性的字型展示策略覆寫,可應用於本地化Google Fonts(keep、swap、optional、fallback、block)。</li>
<li>選擇性的預載標籤用於本地化WOFF2字型。</li>
<li>在文章/頁面儲存、刪除、主題切換、更新以及外掛設定更改時,自動執行快取破解。</li>
</ul>
外掛標籤
開發者團隊
原文外掛簡介
Interwebbi’s Asset Inliner is a performance plugin that focuses on practical frontend asset optimization:
Inlines local frontend CSS from stylesheet links.
Rewrites relative CSS asset URLs so fonts/images still work after inlining.
Optional CSS minification.
Optional Google Fonts localization (detects Google Fonts stylesheets, downloads font files to local uploads, rewrites font URLs to local files, and inlines the rewritten font CSS).
Optional font-display policy override for localized Google Fonts (keep, swap, optional, fallback, block).
Optional preload tags for localized WOFF2 fonts.
Automatic cache busting on post/page saves, deletions, theme switches, updates, and plugin settings changes.
Google Fonts localization is optional and disabled by default.
