
內容簡介
<HTML>
<p>總結:這個外掛會收集使用者實際瀏覽時的數據,以便跨不同設備形式(如桌面、平板和手機)應用載入優化,這是使用WordPress目前伺服器端啟發式算法無法實現的。</p>
<h3>問題與答案:</h3>
<ul>
<li>
<h4>WordPress如何使用伺服器端啟發式算法來優化頁面載入?</h4>
<p>WordPress使用伺服器端啟發式算法來猜測哪些圖片可能在初始視口中,同樣也用此算法來識別可能是最大內容繪制(LCP)元素的英雄圖片。它避免對這些圖片進行懶載入,同時將fetchpriority=high 添加到英雄圖片中。</p>
</li>
<li>
<h4>為什麼WordPress的伺服器端算法僅能有效識別LCP元素約50%的情況?</h4>
<p>由於不同視口寬度(例如桌面和手機)間LCP元素可能有變化,WordPress的啟發式算法僅在伺服器端運行,無法知道頁面的實際佈局,也無法根據客戶端的視口寬度來優先載入圖片。</p>
</li>
<li>
<h4>這個外掛如何提高識別LCP元素準確性?</h4>
<p>這個外掛從實際使用者(RUM)那裡收集數據,以檢測實際的LCP元素,然後利用這些信息優化頁面以便未來訪客,從而正確優先處理LCP元素的載入。</p>
</li>
</ul>
</HTML>
外掛標籤
開發者團隊
② 後台搜尋「Optimization Detective」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
This plugin captures real user metrics about what elements are displayed on the page across a variety of device form factors (e.g. desktop, tablet, and phone) in order to apply loading optimizations which are not possible with WordPress’s current server-side heuristics.
This plugin is a framework dependency which does not provide optimization functionality on its own. For that, please install the Image Prioritizer and Embed Optimizer dependent plugins (among others to come from the WordPress Core Performance team). There are currently no settings and no user interface for this plugin since it is designed to work without any configuration.
Your site must currently have the REST API accessible to unauthenticated frontend visitors since this is how real user metrics are collected about pages on your site; nevertheless, exploration is underway for providing alternative mechanisms for collecting the metrics. Also, please note that no metrics are currently collected from Safari since it does not yet support the Largest Contentful Paint metric, but support for this Core Web Vitals metric is coming this year via Interop 2025.
Please refer to the full plugin documentation for a technical introduction, filter/action hooks, and extensions that show use cases and examples. You can also watch the talk from WordCamp Asia 2025: Boosting Performance with Optimization Detective.
