search
HomeTechnology peripheralsIt IndustryCore Web Vitals: A Guide to Google's Web Performance Metrics

Understanding Google's Core Web Vitals and its promotion methods

Core Web Vitals: A Guide to Google's Web Performance Metrics

Core points:

  • Core Web Vitals is a key performance metric used by Google to measure real user experience, aiming to simplify performance evaluation and help website owners and developers focus on the most important improvements. These three metrics are: Maximum Content Drawing (LCP), First Input Latency (FID), and Cumulative Layout Offset (CLS), respectively, which evaluate loading speed, interactivity, and visual stability.
  • LCP Measures loading performance and reports the rendering time of the largest image or text block visible in the viewport. FID Measuring response speed, recording the time between the user interacting with the page and the browser starts processing event handlers. CLS Measuring visual stability and evaluating unexpected content movements—usually when the DOM changes after the image above the ad or the current scroll position is loaded.
  • Improving core web metrics requires optimizing aspects of the website, such as optimizing images, leveraging browser caches, minimizing render blocking resources, and prioritizing critical rendering paths. Google will provide specific recommendations based on performance reports for your website. Websites that value these metrics tend to have faster load times, better interactivity and a more stable visual experience, which improves user satisfaction and possibly improves search engine rankings.

Google wants users to have a good web experience, so websites that rank higher in search results also load faster. Of course, this is a big simplification, but assuming you are comparing two sites with similar content and audiences, the faster loading websites should rank higher in the results. However, Google’s method of measuring this metric has always been somewhat elusive, so it introduces core web metrics to provide website owners and developers with some much-needed clarity. Unfortunately, "performance" is a general term covering dozens of metrics...

First byte time, start rendering, CPU usage, JavaScript heap size, first content drawing, first meaningful drawing, first time CPU idle, DOM loading, page full loading, interaction time, style recalculating per second

, and so on. Different tools return different result sets, and it is difficult to know where to start.

Google's web metrics program is designed to simplify performance evaluation and help you focus on the most important improvements. Core web metrics are key performance metrics that reflect real-world user experience. Some metrics are reported by the Lighthouse panel, PageSpeed ​​Insights, and Google Search Console in Chrome DevTools.

web-vitals JavaScript library can help measure more realistic metrics from real users visiting your website. Results can be published to Google Analytics or other endpoints for further analysis.

Google recommends using the 75th percentile, which is to record multiple results for the same metric, sort in order from best to worst, and then analyze the values ​​of three quarters. Therefore, three-quarters of website visitors will experience this level of performance.

The current core web metrics are maximum content drawing, first input delay, and cumulative layout offset, which evaluate loading, interactivity, and visual stability, respectively.

Maximum Content Drawing (LCP)

LCP measures loading performance—Speed ​​speed of content display.

Historical metrics such as page loading and DOMContentLoaded have always been problematic in this regard, because they do not always reflect the user experience. For example, the spoiler can appear almost immediately, but it may take longer to appear that it is loaded with a further Ajax request.

Maximum Content Drawing (LCP) Reports the rendering time of the largest image or text block visible in the viewport. Times less than 2.5 seconds are considered good, while times more than 4.0 seconds are considered bad.

The types of elements considered in LCP include:

  • <img src="/static/imghwm/default1.png" data-src="https://img.php.cn/upload/article/000/000/000/173949835734928.jpg?x-oss-process=image/resize,p_40" class="lazy" alt="Core Web Vitals: A Guide to Google's Web Performance Metrics"> <p>Logos and menus do not move – they are stable elements. The ad is added to the DOM and its starting position does not change, so it is also stable. However, the hero image will move: </p> <ol> <li>Hero image is 360 x 510 pixels in the 360 ​​x 720 pixel viewport. Therefore, its impact score is (360 x 510) / (360 x 720) = 0.71</li> <li>It moves vertically by 90 pixels in the viewport height of 720 pixels, so its distance fraction is 90 / 720 = 0.125</li> </ol> <p> Therefore, the CLS is 0.71 x 0.125 = 0.089</p> <p> CLS scores below 0.1 are considered good, while those above 0.25 are considered bad. In this case, the CLS is within an acceptable range because although the affected area is large, the distance to move is relatively small. However, bigger advertising needs further attention. </p> <p> The CLS algorithm does not record any layout offsets within 500 milliseconds of user interaction, which may trigger UI changes or viewport resize. Therefore, your page will not be penalized for interface updates, transitions, and animations that are necessary for operations, such as opening a full-screen menu from the hamburger icon. </p> <p>The Rendering panel (menu > More Tools > Rendering) in Chrome DevTools provides the Layout Offset Area option. Select the box and refresh the page – the layout offset is highlighted in blue. You can also modify the network speed in the Network panel to slow down loading. </p> <p>FID/TBT can be improved by: </p> <ol> <li>Reserve space for image, video and iframe elements by using <code>width and height properties, CSS aspect-ratio properties, or old fill tips (as the case may be)
  • Avoid FOUT (unstyled text flashing) and FOIT (invisible text flashing) when loading network fonts. Preloading or using alternate fonts of similar size will help
  • Do not insert DOM elements above existing content during initial page loading, such as newsletter registration and similar notification boxes
  • Use CSS transform and opacity for less costly animations.
  • Performance priority

    Core web metrics will develop over time, but evaluating LCP, FID, and CLS metrics can help identify the most critical issues. Solve quick and simple puzzles first – they usually have the greatest ROI:

    • Enable server compression and HTTP/2 or HTTP/3
    • Ensure browser cache is used by setting the HTTP expiration header
    • Preload resources as early as possible
    • Merge and compress CSS and JavaScript
    • Delete unused resources
    • Consider using CDN or better hosting
    • Use the appropriate image size and format
    • Optimize image and video file sizes (professional CDNs can help)

    Core Web Metrics FAQ

    • What are core web metrics? Core web metrics are a set of user-centric metrics introduced by Google to measure the loading performance, interactivity, and visual stability of web pages. They are essential for evaluating the overall user experience of a website.
    • What are the three core web page indicators? The three core web metrics are: Maximum Content Draw (LCP), First Input Delay (FID), and Cumulative Layout Offset (CLS).
    • Why are core web metrics important to website owners? Core web metrics are very important because they directly affect the user experience. Websites that value these metrics tend to have faster load times, better interactivity and a more stable visual experience, which improves user satisfaction and possibly improves search engine rankings.
    • How to measure the core web page metrics of my website? There are a variety of tools that can be used to measure core web metrics, including Google's PageSpeed ​​Insights, Lighthouse, and Chrome User Experience Reports. These tools provide insight into the performance of a website based on LCP, FID, and CLS metrics.
    • How to improve the core web page metrics of my website? Improving core web metrics requires optimizing aspects of the website, such as optimizing images, leveraging browser caching, minimizing render blocking resources, and prioritizing critical rendering paths. Google will provide specific recommendations based on performance reports for your website.
    • Will core web metrics affect search engine rankings? Yes, core web metrics are ranking factors in Google's search algorithm. Google has stated that starting from May 2021, page experience signals (including core web metrics) will be included in the ranking of search results. Websites that reflect a better user experience in these metrics may have an advantage in search rankings.

The above is the detailed content of Core Web Vitals: A Guide to Google's Web Performance Metrics. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Serverless Image Processing Pipeline with AWS ECS and LambdaServerless Image Processing Pipeline with AWS ECS and LambdaApr 18, 2025 am 08:28 AM

This tutorial guides you through building a serverless image processing pipeline using AWS services. We'll create a Next.js frontend deployed on an ECS Fargate cluster, interacting with an API Gateway, Lambda functions, S3 buckets, and DynamoDB. Th

CNCF Arm64 Pilot: Impact and InsightsCNCF Arm64 Pilot: Impact and InsightsApr 15, 2025 am 08:27 AM

This pilot program, a collaboration between the CNCF (Cloud Native Computing Foundation), Ampere Computing, Equinix Metal, and Actuated, streamlines arm64 CI/CD for CNCF GitHub projects. The initiative addresses security concerns and performance lim

Building a Network Vulnerability Scanner with GoBuilding a Network Vulnerability Scanner with GoApr 01, 2025 am 08:27 AM

This Go-based network vulnerability scanner efficiently identifies potential security weaknesses. It leverages Go's concurrency features for speed and includes service detection and vulnerability matching. Let's explore its capabilities and ethical

Top 10 Best Free Backlink Checker Tools in 2025Top 10 Best Free Backlink Checker Tools in 2025Mar 21, 2025 am 08:28 AM

Website construction is just the first step: the importance of SEO and backlinks Building a website is just the first step to converting it into a valuable marketing asset. You need to do SEO optimization to improve the visibility of your website in search engines and attract potential customers. Backlinks are the key to improving your website rankings, and it shows Google and other search engines the authority and credibility of your website. Not all backlinks are beneficial: Identify and avoid harmful links Not all backlinks are beneficial. Harmful links can harm your ranking. Excellent free backlink checking tool monitors the source of links to your website and reminds you of harmful links. In addition, you can also analyze your competitors’ link strategies and learn from them. Free backlink checking tool: Your SEO intelligence officer

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool