What are Web Vitals

Web Vitals are a set of metrics introduced by Google to help web developers and site owners measure and understand the user experience of their websites. These metrics focus on key aspects of web performance and user interaction.

Largest Contentful Paint (LCP):

This metric measures the loading performance of a web page. It indicates the time taken for the largest content element (such as an image or a block-level text element) to become visible to the user.

largest-contentful-paint-example.png

First Input Delay (FID)

FID measures the responsiveness of a web page by calculating the time between a user's first interaction (such as clicking a button or a link) and the browser's response to that interaction.

fid2.png

Cumulative Layout Shift (CLS):

CLS quantifies the visual stability of a web page. It measures how much the content on the page shifts during loading, which can be disruptive for users. A low CLS score indicates a more stable and user-friendly experience.

<aside> 💡 Google has set specific thresholds for each of these metrics to help developers identify areas for improvement. These metrics are considered crucial for delivering a positive user experience, and they are taken into account by search engines when ranking websites. It's worth noting that Google might update its guidelines or introduce new metrics over time, so it's advisable to check the latest documentation for the most up-to-date information on Web Vitals.

</aside>

cls-example.webp

What are “GOOD” web vitals

The acceptable values for Web Vitals are defined by Google's recommendations. These recommendations may be subject to change, and it's essential to refer to the latest documentation for the most up-to-date information. However, as of my last update, the general guidelines were:

  1. Largest Contentful Paint (LCP): To provide a good user experience, LCP should occur within the first 2.5 seconds of the page starting to load.

lcp-good.png

  1. First Input Delay (FID): FID should be less than 100 milliseconds to ensure a responsive and interactive user experience.

good fid.png

  1. Cumulative Layout Shift (CLS): A CLS score of less than 0.1 is considered good. Scores between 0.1 and 0.25 are considered needs improvement, and scores above 0.25 are considered poor.

good-cls.png

<aside> 💡 It's important to note that these values are not strict rules but rather guidelines to help developers assess and improve the user experience on their websites. Meeting or exceeding these values is generally considered good practice for creating a fast, responsive, and visually stable web application. Additionally, Google may update these recommendations over time, so checking the latest documentation is advisable.

</aside>

Summary

Aspect Impact on Web Vitals Common Issues Mitigation Steps
Largest Contentful Paint (LCP) Page loading time * Large and unoptimized assets

These bullet points provide a more concise representation of the common issues and mitigation steps for each Web Vitals aspect.