[WordPress] 外掛分享: Inline Image Base64 – inline specific images into the HTML

首頁 › 外掛目錄 › Inline Image Base64 – inline specific images into the HTML
WordPress 外掛 Inline Image Base64 – inline specific images into the HTML 的封面圖片
90+
安裝啟用
★★★★★
5/5 分(1 則評價)
29 天前
最後更新
—
問題解決
WordPress 4.6+ PHP 5.6+ v0.0.4 上架:2021-04-18

內容簡介

Inline Image Base64 外掛可將特定圖片直接嵌入 HTML 中,並以 base64 格式顯示,提升頁面渲染效能。此外掛還能針對特定圖片禁用原生的延遲加載功能,改善用戶體驗。

【主要功能】
• 將圖片以 base64 格式嵌入 HTML
• 禁用特定圖片的原生延遲加載
• 提升頁面渲染效能
• 支援小於 20-30 kB 的圖片
• 提供媒體庫內的設置選項

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Inline Image Base64 – inline specific images into the HTML」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

With Inline Image Base64 you can inline specific images directly into the HTML as base64.
You can also use it to disable the native lazy loading for specific images.
After successful activation, you will see two checkboxes when you open an attachment in the media library. One for inlining the image and another one to disable the native lazy loading.
Inlining the first image that appears in the viewport can drastically improve the rendering performance.
The benefits will be higher for light images. A typical example is a light logo.
If you do it for too big images the size of the HTML may become too big.
Inlining images is very useful for images that are not more than 20-30 kB. But it depends on the size of the HTML that you already have.
We suggest perform some speed tests with Google PageSpeed Insights to check the benefits.
Upload an image that already has the right dimensions.
To have a minimum Content Layout Shift, better you assign the width and hight to the image with custom CSS.
In any case, we suggest disabling the native lazy loading for all the images that appear on the viewport during the first rendering.
Disabling the lazy loading for those images can only give benefits.
You will find the settings on every single attachment in the media library, no dedicated settings page for this plugin.
Backend Speed Optimization
Is your dashboard slow? We optimize admin performance by improving queries and reducing plugin load.
Read Backend Speed Optimization Service for more information.
How to inline an image into the HTML

Install and activate Inline Image base64
Go to the media library and open the image that you want to inline into the HTML
Check the checkbox “Inline Image”

How to disable the native lazy loading of a specific image

Install and activate Inline Image base64
Go to the media library and open the image that you want to load without lazy loading
Unheck the checkbox “Native Lazy Loading”

Suggestions

Always disable the lazy loading for the images that appear in the viewport during the page loading
Inline only the images that appears in the viewport during the page loading, only if they aren’t too big. Until 20-30 kB should be ok, but it depends on the size of the HTML.
Perform some tests with Google PageSpeed Insights before and after inlining an image. So you can evaluate the benefits and drawbacks that could be caused by a too large HTML

Help
For any kind of issue, don’t hesitate to open a thread on the Support Forum

延伸相關外掛

文章
Filter
Mastodon