[WordPress] 外掛分享: Enhanced Responsive Images

WordPress 外掛 Enhanced Responsive Images 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Enhanced Responsive Images」是 2024-01-18 上架。
  • 目前有 30000 個安裝啟用數。
  • 上一次更新是 2025-04-09,距離現在已有 24 天。
  • 外掛最低要求 WordPress 6.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

wordpressdotorg |

外掛標籤

images | auto-sizes | performance |

內容簡介

這個外掛程式實現了將 sizes="auto" 加入到懶加載圖片的 HTML 規格。
相關背景資訊請參考:https://github.com/whatwg/html/issues/4654。

問題與答案:
問題:這個外掛程式的功能是什麼?
答案:這個外掛程式實現了將 sizes="auto" 加入到懶加載圖片的 HTML 規格。

問題:這個外掛程式的相關背景資訊在哪裡可以找到?
答案:相關背景資訊可以在以下連結找到:https://github.com/whatwg/html/issues/4654。

原文外掛簡介

This plugin implements experimental enhancements for the responsive images functionality in WordPress. Currently, this includes:

Improvements to the accuracy of the sizes attribute by using available layout information in the theme.
Implementation of the new HTML spec for adding sizes="auto" to lazy-loaded images. See the HTML spec issue Add “auto sizes” for lazy-loaded images.

This plugin integrates with the Image Prioritizer plugin. When that plugin is active, it starts learning about which images are not in the initial viewport based on actual visitors to your site. When it knows which images are below the fold, it then adds loading=lazy to these images. This plugin then extends Image Prioritizer to also add sizes=auto to these lazy-loaded images.
There are currently no settings and no user interface for this plugin since it is designed to work without any configuration.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Enhanced Responsive Images」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.1 | 1.0.2 | 1.1.0 | 1.2.0 | 1.3.0 | 1.4.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Disable Auto-Sizes 》總結:「Disable Auto-Sizes」外掛阻止 WordPress 在圖片的大小屬性中添加自動關鍵字 auto,確保完全控制大小屬性,對於進階自定義或除錯非常有用。, , HTML ...。

文章
Filter
Apply Filters
Mastodon