Web Vitals

Measure metrics for a healthy site

什么是Web Vitals?

Web Vitals是由addyosmani开发的Chrome扩展程序,该扩展的主要功能是“Measure metrics for a healthy site”。

扩展截图

screenshot
screenshot
screenshot

下载Web Vitals扩展crx文件

下载Web Vitals扩展crx格式的文件,手动将Chrome插件安装到浏览器中,也可以将crx文件分享给朋友,轻松安装Chrome插件。

扩展使用说明

                        Web Vitals are quality signals key to delivering great UX on the web (https://web.dev/vitals). This extension measures the Core Web Vitals, providing instant feedback on loading, interactivity and layout shift metrics. It is consistent with how these metrics are measured by Chrome and reported to other Google tools (e.g. Chrome User Experience Report, Page Speed Insights, Search Console).

The extension captures:
Largest Contentful Paint
Cumulative Layout Shift
First Input Delay
Interaction To Next Paint (experimental)
First Contentful Paint
Time To First Byte

The extension provides three core features:

1) Ambient Badge - This helps check if a page passing the Core Web Vitals thresholds.

Once installed, the extension will display a disabled state badge icon until you navigate to a URL. At this point it will update the badge to green or red depending on whether the URL passes the Core Web Vitals metrics thresholds.

The badge has a number of states:

* Disabled - gray
* Passing - green
* One or more metrics failing - red

If one or more metrics are failing, the badge will animate the values of these metrics.

2) Detailed drill-down in the popup

Clicking the Ambient badge icon will allow you to drill in to the individual metric values. In this mode, the extension will also say if a metric value might change or requires a user action.

For example, First Input Delay requires a real interaction (e.g click/tap) with the page and will be in a waiting for input state until this is the case. We recommend consulting the web.dev documentation for LCP, CLS and FID to get an understanding of when metric values settle.

As of version 1.0.0, the popup combines your local Core Web Vitals experiences with real-user data from the field via the Chrome UX Report (CrUX) API. This integration gives you contextual insights to help you understand how similar your individual experiences are to other desktop users on the same page. We've also added a new option to "Compare local experiences to phone field data" instead, if needed. Note that CrUX data may not be available for some pages, in which case we try to load field data for the origin as a whole.

3) HUD Overlay

The overlay displays a Heads up display (HUD) which overlays your page. It is useful if you need a persistent view of your Core Web Vitals metrics during development. To enable the overlay:

Right-click on the Ambient badge and go to Options.
Check Display HUD overlay and click 'Save'
Reload the tab for the URL you wish to test. The overlay should now be present.                    

扩展基本信息

名称 Web Vitals Web Vitals
ID ahfhijdlegdabablpippeagghigmibma
官方URL https://chromewebstore.google.com/detail/web-vitals/ahfhijdlegdabablpippeagghigmibma
简介 Measure metrics for a healthy site
文件大小 393 KB
安装次数 177,911
当前版本 1.4.0
更新时间 2023-08-09
上架时间 2020-06-30
评分 4.03/5 共38次评分
开发者 addyosmani
电子邮箱 [email protected]
付费类型 free
扩展官网 https://github.com/GoogleChrome/web-vitals-extension
帮助页面URL https://github.com/GoogleChrome/web-vitals-extension/issues
支持的语言 en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "name": "Web Vitals",
    "version": "1.4.0",
    "manifest_version": 3,
    "description": "Measure metrics for a healthy site",
    "homepage_url": "https:\/\/web.dev\/vitals\/",
    "icons": {
        "128": "icons\/vitals128w.png",
        "256": "icons\/vitals256w.png",
        "512": "icons\/vitals512w.png"
    },
    "action": {
        "default_icon": "icons\/default256w.png",
        "default_title": "Web Vitals",
        "default_popup": "src\/browser_action\/popup.html"
    },
    "options_page": "src\/options\/options.html",
    "host_permissions": [
        "*:\/\/*\/*"
    ],
    "permissions": [
        "tabs",
        "storage",
        "activeTab",
        "scripting"
    ],
    "web_accessible_resources": [
        {
            "resources": [
                "src\/browser_action\/viewer.css",
                "src\/browser_action\/web-vitals.js",
                "src\/browser_action\/on-each-interaction.js"
            ],
            "matches": [
                "*:\/\/*\/*"
            ]
        }
    ],
    "content_scripts": [
        {
            "matches": [
                "*:\/\/*\/*"
            ],
            "css": [
                "src\/browser_action\/viewer.css"
            ],
            "js": [
                "src\/browser_action\/lodash-debounce-custom.js"
            ]
        }
    ],
    "background": {
        "service_worker": "service_worker.js"
    },
    "content_security_policy": {
        "extension_pages": "default-src 'self'; connect-src https:\/\/chromeuxreport.googleapis.com;"
    }
}