{"id":396144,"date":"2024-03-22T08:00:00","date_gmt":"2024-03-22T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/optimization-detective\/"},"modified":"2025-04-09T23:05:00","modified_gmt":"2025-04-09T23:05:00","slug":"optimization-detective","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/optimization-detective\/","title":{"rendered":"Optimization Detective"},"content":{"rendered":"<p>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\u2019s current server-side heuristics.<\/p>\n<p>This plugin is a framework dependency which does not provide optimization functionality on its own. For that, please install the <a href=\"https:\/\/wordpress.org\/plugins\/image-prioritizer\/\" rel=\"ugc\">Image Prioritizer<\/a> and <a href=\"https:\/\/wordpress.org\/plugins\/embed-optimizer\/\" rel=\"ugc\">Embed Optimizer<\/a> dependent plugins (among <a href=\"https:\/\/github.com\/WordPress\/performance\/labels\/%5BPlugin%5D%20Optimization%20Detective\" rel=\"nofollow ugc\">others<\/a> to come from the WordPress Core Performance team). There are currently <strong>no settings<\/strong> and no user interface for this plugin since it is designed to work without any configuration.<\/p>\n<p>Your site must currently have the <strong>REST API accessible<\/strong> to unauthenticated frontend visitors since this is how real user metrics are collected about pages on your site; nevertheless, <a href=\"https:\/\/github.com\/WordPress\/performance\/issues\/1311\" rel=\"nofollow ugc\">exploration<\/a> 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 <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/LargestContentfulPaint\" rel=\"nofollow ugc\">Largest Contentful Paint<\/a> metric, but support for this <a href=\"https:\/\/web.dev\/explore\/learn-core-web-vitals\" rel=\"nofollow ugc\">Core Web Vitals<\/a> metric is coming this year <a href=\"https:\/\/webkit.org\/blog\/16458\/announcing-interop-2025\/#core-web-vitals\" rel=\"nofollow ugc\">via Interop 2025<\/a>.<\/p>\n<p>Please refer to the <a href=\"https:\/\/github.com\/WordPress\/performance\/blob\/trunk\/plugins\/optimization-detective\/docs\/README.md\" rel=\"nofollow ugc\">full plugin documentation<\/a> for a <a href=\"https:\/\/github.com\/WordPress\/performance\/blob\/trunk\/plugins\/optimization-detective\/docs\/introduction.md\" rel=\"nofollow ugc\">technical introduction<\/a>, <a href=\"https:\/\/github.com\/WordPress\/performance\/blob\/trunk\/plugins\/optimization-detective\/docs\/hooks.md\" rel=\"nofollow ugc\">filter\/action hooks<\/a>, and <a href=\"https:\/\/github.com\/WordPress\/performance\/blob\/trunk\/plugins\/optimization-detective\/docs\/extensions.md\" rel=\"nofollow ugc\">extensions<\/a> that show use cases and examples. You can also watch the talk from WordCamp Asia 2025: <a href=\"https:\/\/weston.ruter.net\/2025\/02\/21\/boosting-performance-with-optimization-detective\/\" rel=\"nofollow ugc\">Boosting Performance with Optimization Detective<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Provides a framework for leveraging real user metrics to detect optimizations for improving page performance.<\/p>\n","protected":false},"author":65,"featured_media":396145,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Optimization Detective - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Provides a framework for leveraging real user metrics to detect optimizations for improving page performance."},"footnotes":""},"categories":[1],"tags":[517,64,31811],"class_list":["post-396144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-optimization","tag-performance","tag-rum"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/396144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=396144"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/396144\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/396145"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=396144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=396144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=396144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}