22.07.2022
Cumulative Layout Shift (CLS) is one of the core web vitals metrics. CLS is a metric that measures the shifting of the position of elements, that is their visual stability, as a website continues to download. Elements that may cause order shift; videos, images, forms, buttons, and different types of content.
Cumulative Layout Shift can be for many reasons:
Apart from these, the fact that the site speed is too low and the width and height values are not entered on the HTML adversely affects the visual stability, which leads to an increase in CLS.
One of the tools we can use to measure the CLS metric is Google PageSpeed Insights. Apart from that, another tool we can use is the Google Chrome Lighthouse extension. Can we understand the existence of CLS without using tools? Yes, we can notice the shifts in large elements when we first start loading our site , to be able to notice more clearly, it is enough to start loading the site at low internet speed.
To eliminate the CLS issue, we first need to maintain visual stability on our site. If we talk about visuals as an example, if you do not specify the width and height values on the HTML, the element before the image will be loaded until the page loads. Once the image is loaded, the image will take its place, and the element that comes in its place will slide down. So, if we determine the width height values of the images on HTML, will it not cause problems in terms of responsiveness? everyone started thinking. A correct idea, if we determine only through HTML, visuals on mobile will create problems. Therefore, we need to use the following css for img tags;
img
{
width: 100%;
height: auto;
}
You can watch the video below for detailed information.
You can use the font-display feature of CSS and codes such as auto, optional, swap to lower the CLS value and repair these problems.
font-display: auto;
0.0 – 0.1 | 0.1 – 0.25 | 0.25++ |
Successful | Open to Development & Acceptabl | Failed |
SEO has been many years since we came out of a position where ranking was achieved only with the right content planning and keyword optimization. Now, Google Keyword puts the pages with good targeting and user experience in the first place. The CLS metric entered our lives with the core update such as core web vitals to measure the user experience. If your site loads fast and has high visual stability, the user who enters our site has more session time and this is reflected in our Bounce Rate rates.
Perfist Blog
Similar Articles
What is SEO Analysis? SEO analysis is a detailed examination of a website’s performance in search engines. This analysis provides insights into the site’s current status and highlights areas needing improvement. SEO analysis is essential for defining a roadmap and building a successful strategy. Accurate analysis clarifies which keywords to focus on, how to resolve […]
Read More
Mid Level SEOWhat is Search Intent? Search intent refers to the underlying goal a user has when performing a search query. Google and other search engines do not just focus on keywords but also analyze their context to understand what users are really looking for. Search intent is generally categorized into four main types: informational, navigational, commercial […]
Read More
SEOWhat is Semantic SEO? Semantic SEO is an optimization approach that helps search engines better understand user intent. This method analyzes the relationships between words, context, and the purpose behind user queries, ensuring more accurate content matching. Based on our extensive experience in digital marketing, we can confidently say that content created with a semantic […]
Read More
SEOWhat is Site Speed? Site speed refers to how quickly a web page loads. (Site speed has multiple factors. The most important of these are initial load time and load speed.) This speed directly affects the visitor experience. A slow-loading site can cause users to leave the site and choose other pages. Additionally, search engines […]
Read More
Mid Level SEO