
內容簡介
這個外掛程式實現了將 sizes="auto" 加入到懶加載圖片的 HTML 規格。
相關背景資訊請參考:https://github.com/whatwg/html/issues/4654。
問題與答案:
問題:這個外掛程式的功能是什麼?
答案:這個外掛程式實現了將 sizes="auto" 加入到懶加載圖片的 HTML 規格。
問題:這個外掛程式的相關背景資訊在哪裡可以找到?
答案:相關背景資訊可以在以下連結找到:https://github.com/whatwg/html/issues/4654。
外掛標籤
開發者團隊
原文外掛簡介
This plugin implements enhancements for the responsive images functionality in WordPress. Currently, this includes:
Improvements to the accuracy of the sizes attribute by using layout information available in block themes. This enhancement is not available to classic themes.
Implementation of the new HTML spec for adding sizes="auto" to lazy-loaded images. This enhancement was merged into WordPress 6.7.
See also the complimentary Image Prioritizer plugin which detects which images are outside the viewport, and then adds loading=lazy and sizes=auto to them.
There are currently no settings and no user interface for this plugin since it is designed to work without any configuration.
