{"id":2057,"date":"2023-12-26T07:16:29","date_gmt":"2023-12-26T07:16:29","guid":{"rendered":"https:\/\/www.dzinepixel.com\/?post_type=blog&#038;p=2057"},"modified":"2024-05-23T13:27:23","modified_gmt":"2024-05-23T13:27:23","slug":"cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it","status":"publish","type":"blog","link":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/","title":{"rendered":"Cumulative Layout Shift: Why CLS is Important for SEO and How to Improve It?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2057\" class=\"elementor elementor-2057\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-efb29ad elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"efb29ad\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-66 elementor-top-column elementor-element elementor-element-eb42b29\" data-id=\"eb42b29\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7d0426b elementor-widget elementor-widget-text-editor\" data-id=\"7d0426b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>Imagine you are about to click or tap a button on a website, and the button moves, and you end up clicking something else. Not just buttons, it happens with images, text, videos, and other interactive elements as well. This shift in elements is calculated through Cumulative Layout Shift (CLS), a crucial part of\u00a0<a href=\"https:\/\/www.dzinepixel.com\/blog\/is-core-web-vitals-a-ranking-factor-for-search-engines-like-google-and-bing\/\"><strong>Core Web Vitals Metrics<\/strong><\/a><strong>.<\/strong>\u00a0<\/p><p>As a key metric, CLS measures the shifting or jumpiness of a website and to what degree things get displaced from the viewpoint. The good thing is, that developers are working on keeping these issues to the minimum as search engines like Google prefer a website that has a perfect score on Core Web Vitals.\u00a0<\/p><p>Now, let\u2019s learn more about CLS and see how it works, and what you can do for a perfect CLS score, eventually providing a good user experience and improving your chances of ranking higher in SERP.<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-cf9fa7a\" data-id=\"cf9fa7a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-03af2d6 elementor-widget elementor-widget-image\" data-id=\"03af2d6\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t<img width=\"640\" height=\"427\" src=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Description-1024x683.jpg\" class=\"attachment-large size-large\" alt=\"cumulative layout shift; core web vitals; online marketing India; digital marketing India; web development services India\" loading=\"lazy\" srcset=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Description-1024x683.jpg 1024w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Description-300x200.jpg 300w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Description-768x513.jpg 768w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Description-1536x1025.jpg 1536w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Description-2048x1367.jpg 2048w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8c5f8d1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8c5f8d1\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0680a87\" data-id=\"0680a87\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4dd6f58 elementor-widget elementor-widget-heading\" data-id=\"4dd6f58\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">What is Cumulative Layout Shift?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7519147 elementor-widget elementor-widget-text-editor\" data-id=\"7519147\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>Cumulative Layout Shift (CLS) measures the number your site has unexpectedly shifted during its lifetime. For instance, if you are reading a page while it is loaded, and suddenly a banner loads, and, the page jumps goes down completely out of your view. In such cases, your site will get a large CLS score.<\/p><p>CLS is a part of Google\u2019s Core Web Vitals, along with\u00a0<a href=\"https:\/\/www.dzinepixel.com\/blog\/largest-contentful-paint-lcp-the-unbeatable-strategy-for-seo-success-on-googles-serp\/\"><strong>Largest Contentful Paint (LCP),<\/strong><\/a><strong>\u00a0<\/strong>and<strong>\u00a0<\/strong><a href=\"https:\/\/www.dzinepixel.com\/blog\/what-is-first-input-delay-a-complete-guide\/\"><strong>First Input Delay (FID)<\/strong><\/a>. When web crawlers crawl your site, they check the CLS of each page. That\u2019s why it\u2019s equally important for developers to pay attention to CLS as LCP and FID.\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-32abf63 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"32abf63\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-894ebb5\" data-id=\"894ebb5\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-68eb55a elementor-widget elementor-widget-heading\" data-id=\"68eb55a\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">What is a good CLS score?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-147ae7e elementor-widget elementor-widget-text-editor\" data-id=\"147ae7e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>A cumulative layout score of less than 0.1 is considered good. Meanwhile, a score between 0.1 and 0.25 requires improvement, and a score greater than 0.25 is poor and needs immediate attention.<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6e306c2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6e306c2\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-396e1e8\" data-id=\"396e1e8\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-581bd21 elementor-widget elementor-widget-heading\" data-id=\"581bd21\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Importance of CLS<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-689fe81 elementor-widget elementor-widget-text-editor\" data-id=\"689fe81\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>According to a report published in 2020,\u00a0<a href=\"https:\/\/www.sitejet.io\/en\/article\/web-design-statistics-2020\">93 percent<\/a>\u00a0of people have reported leaving a site when it didn\u2019t load properly.\u00a0<\/p><p>If your site gets jumpy or loads haphazardly, it may persuade your visitors to leave or look somewhere else. A high CLS score can cause serious usability issues in your website. This includes tapping or clicking on the wrong option. For instance, you might end up clicking on\u00a0<strong>sign up<\/strong>, while clicking\u00a0<strong>sign in<\/strong>, as both the buttons are closer.\u00a0<\/p><p>A jumpy site can also make you leave a site early out of frustration, or you may miss out on other features or elements of the website due to this shift in elements.\u00a0<\/p><p>The major problem arises when you try to access a website on a smartphone. Viewing on a small device poses more challenges as even a small shift can make a great impact on the user experience.\u00a0<\/p><p>Another thing, Google ranks a website as per its page performance. Meaning, that if you provide a better user experience, they will spend more time on your site. This will eventually push your page on the SERP ladder.\u00a0<\/p><p>On the other hand, if your website doesn\u2019t meet the Core Web Vitals standard, your site may be penalized. The logic is simple- Google or any search engine wouldn\u2019t suggest pages to their users that don\u2019t perform well.\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d8828bb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d8828bb\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e1ea6ee\" data-id=\"e1ea6ee\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9090989 elementor-widget elementor-widget-heading\" data-id=\"9090989\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">The reason behind High Cumulative Layout Shift in Websites<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-63159a2 elementor-widget elementor-widget-text-editor\" data-id=\"63159a2\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>Page shifts usually happen when contents on a webpage load at different speeds, causing a series of layout changes. This includes ads loading at a slow pace, videos popping up out of nowhere and DOM elements being added dynamically to existing content.\u00a0<\/p><p>For example, if an ad banner is loaded after all the web page loads, it will push the whole content down and disrupt the user experience.\u00a0<\/p><p><strong>Unexpected shifting of elements on a page usually happens when DOM elements are dynamically added to existing contents or a page is loaded asynchronously.\u00a0<\/strong><\/p><p>It might happen due to an image or video with unknown dimensions, a font that gets larger or smaller after it renders completely, or 3rd party ad or widget that resizes itself dynamically.\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e7a44e2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e7a44e2\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2577254\" data-id=\"2577254\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c0842a0 elementor-widget elementor-widget-heading\" data-id=\"c0842a0\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Challenges with CLS <\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c5bf884 elementor-widget elementor-widget-text-editor\" data-id=\"c5bf884\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>The Cumulative Shift Mertic (CLS) helps in addressing issues causing shifting in page layouts. However, it is a challenge for developers it is hard to know if their users are experiencing layout shifts in real life. This is because page loading differs for every device or environment.\u00a0<\/p><p><strong>The issue becomes more challenging because the way a website works during development can be quite different from how users actually experience it.<\/strong><\/p><p>The thing is personalized and 3rd party content doesn\u2019t behave similarly during the development process as it does in the production stage.\u00a0<\/p><p>During development, test images are often stored in the developer&#8217;s browser cache, making them load faster. However, real users may not have these images cached, leading to different loading times.<\/p><p>API calls made locally during development are often very fast, and developers might not notice any significant delays. However, in the actual production environment, these API calls may take longer, affecting the user experience.<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-04bffe0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"04bffe0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8401b28\" data-id=\"8401b28\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-63bfbdc elementor-widget elementor-widget-heading\" data-id=\"63bfbdc\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Ways To Accurately Measure CLS Metric<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b8dabcb elementor-widget elementor-widget-text-editor\" data-id=\"b8dabcb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><h3>Use web tools like Lighthouse and PageSpeed Insights<\/h3><p>Lighthouse provides you the CLS metric along with other Core Web Vitals. Meanwhile, Google PageSpeed Insights provide a more detailed analysis of a page performance, including CLS. It also offer suggestions for improvements.<\/p><h4>To Check CLS using PageSpeed Insights<\/h4><p><strong>Open<\/strong> <a href=\"https:\/\/pagespeed.web.dev\/\">PageSpeed Insights (web.dev)<\/a><\/p><p><strong>Enter<\/strong> your <strong>URL<\/strong> in the search box<\/p><p><strong>Click<\/strong> <strong>Analyze<\/strong><\/p><p>Furthermore, you can choose CLS and other vital for mobile and desktop individually.<\/p><h4>To Check CLS Using Lighthouse Tool<\/h4><p>Open the page you want to analyse in <strong>chrome or edge<\/strong><\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8dce275 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8dce275\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-20 elementor-top-column elementor-element elementor-element-32f293c\" data-id=\"32f293c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e761345 elementor-widget elementor-widget-image\" data-id=\"e761345\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t<img width=\"640\" height=\"360\" src=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Developer-Tools-1024x576.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Developer-Tools-1024x576.png 1024w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Developer-Tools-300x169.png 300w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Developer-Tools-768x432.png 768w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Developer-Tools.png 1366w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-20 elementor-top-column elementor-element elementor-element-749dd19\" data-id=\"749dd19\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-07a7c86 elementor-widget elementor-widget-image\" data-id=\"07a7c86\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t<img width=\"640\" height=\"360\" src=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/more-tools-1024x576.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/more-tools-1024x576.png 1024w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/more-tools-300x169.png 300w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/more-tools-768x432.png 768w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/more-tools.png 1366w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-20 elementor-top-column elementor-element elementor-element-dc44f53\" data-id=\"dc44f53\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3fab63d elementor-widget elementor-widget-image\" data-id=\"3fab63d\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t<img width=\"640\" height=\"360\" src=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Lighthouse-1024x576.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Lighthouse-1024x576.png 1024w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Lighthouse-300x169.png 300w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Lighthouse-768x432.png 768w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Lighthouse.png 1366w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-20 elementor-top-column elementor-element elementor-element-fad13ea\" data-id=\"fad13ea\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-37a0521 elementor-widget elementor-widget-image\" data-id=\"37a0521\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t<img width=\"640\" height=\"360\" src=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Generate-Report-1024x576.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Generate-Report-1024x576.png 1024w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Generate-Report-300x169.png 300w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Generate-Report-768x432.png 768w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Generate-Report.png 1366w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-20 elementor-top-column elementor-element elementor-element-300e1c2\" data-id=\"300e1c2\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c937c78 elementor-widget elementor-widget-image\" data-id=\"c937c78\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t<img width=\"640\" height=\"360\" src=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/rum-1024x576.png\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/rum-1024x576.png 1024w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/rum-300x169.png 300w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/rum-768x432.png 768w, https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/rum.png 1366w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-187ae10 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"187ae10\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b1da946\" data-id=\"b1da946\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ff3e26a elementor-widget elementor-widget-heading\" data-id=\"ff3e26a\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Real User Monitoring (RUM) tools<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c5b1ff1 elementor-widget elementor-widget-text-editor\" data-id=\"c5b1ff1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>Google Analytics track real user interactions and provide insights on how they interacted with a page.<\/p><p><strong>Logging and Analytics<\/strong><\/p><p>Implement logging and analytics in your web application to capture user interactions and measure CLS. Log relevant data that can help you identify instances of layout shifts and their impact on the user experience.<\/p><p><strong>User Feedback<\/strong><\/p><p>Encourage users to provide feedback on their experiences, especially if they encounter layout shift issues. User feedback can used along with quantitative metrics to get valuable insights into specific pain points.<\/p><p><strong>Test your Website in Various Environments<\/strong><\/p><p>Test your website in different environments, devices, and network conditions to simulate a variety of user experiences. This includes testing on various browsers, devices, and connection speeds.<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-796a044 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"796a044\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2c5521a\" data-id=\"2c5521a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-04c060a elementor-widget elementor-widget-heading\" data-id=\"04c060a\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to Improve Your Cumulative Layout Shift Score?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1382427 elementor-widget elementor-widget-text-editor\" data-id=\"1382427\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>Cumulative Layout Shift is a valuable insight that help your website to rank higher in Search Engine Results Page (SERP) of Google, Bing, and other search engines. If your website\u2019s CLS score is high, congrats. Now check the score of other core web vitals, and check the optimization score of your website.<\/p><p>If your site scored poorly, then don\u2019t worry. It\u2019s pretty common for websites to have poor score, and with the right measure you can easily improve it. However, you may need the help of <a href=\"https:\/\/www.dzinepixel.com\/website-development\">professional web developers<\/a> for that.<\/p><p><strong>Here are the steps to take for optimizing your CLS metric<\/strong><\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3f85de6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3f85de6\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-34a6e1f\" data-id=\"34a6e1f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-40db209 elementor-widget elementor-widget-heading\" data-id=\"40db209\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Define dimensions for Images and Videos<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4c6a907 elementor-widget elementor-widget-text-editor\" data-id=\"4c6a907\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><h4>Images<\/h4><p>Unexpected shifts in webpage can easily be avoided by adding width and height size attributes for all image and video elements. This way, the browser will reserve the necessary space for an image, and reduce unexpected shifts.<\/p><p>&lt;!DOCTYPE html&gt;<\/p><p>&lt;html lang=&#8221;en&#8221;&gt;<\/p><p>&lt;head&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;meta charset=&#8221;UTF-8&#8243;&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;title&gt;Image Dimensions Example&lt;\/title&gt;<\/p><p>&lt;\/head&gt;<\/p><p>&lt;body&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;img src=&#8221;your-image.jpg&#8221; alt=&#8221;Description of the image&#8221; width=&#8221;800&#8243; height=&#8221;600&#8243;&gt;<\/p><p>&lt;\/body&gt;<\/p><p>&lt;\/html&gt;<\/p><p>Employ the &#8220;max-width: 100%&#8221; CSS rule for images to ensure they don&#8217;t exceed their container size. This is particularly important for responsive design.<\/p><p>Consider using Lazy loading for images. This makes the images load only when they enter the viewport. This minimizes initial page load time, and significantly reduces the occurrence of layout shifts.<\/p><h4>Videos<\/h4><p>Define the aspect ratios of videos by using the width and height attributes. If you are using embedded videos, make sure the height and width attributes are included in the embed code or iframe. Similar to images, consider lazy loading videos to defer their loading until they are needed.<\/p><h3>Set Width and Height for Banner Ads, Embeds, and iFrames<\/h3><p>Setting explicit dimensions for banner ads, embeds, and iframes is important for maintaining a stable layout and improving the user experience. Here are examples of how you can set width and height for each:<\/p><h4>Banner Ads:<\/h4><p>&lt;!DOCTYPE html&gt;<\/p><p>&lt;html lang=&#8221;en&#8221;&gt;<\/p><p>&lt;head&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;meta charset=&#8221;UTF-8&#8243;&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;title&gt;Banner Ad Example&lt;\/title&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;style&gt;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .banner-ad {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 width: 728px; \/* Set the desired width *\/<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 height: 90px; \/* Set the desired height *\/<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p><p>\u00a0\u00a0\u00a0 &lt;\/style&gt;<\/p><p>&lt;\/head&gt;<\/p><p>&lt;body&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;div class=&#8221;banner-ad&#8221;&gt;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;img src=&#8221;ad-banner.jpg&#8221; alt=&#8221;Banner Ad&#8221;&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;\/div&gt;<\/p><p>&lt;\/body&gt;<\/p><p>&lt;\/html&gt;<\/p><p>In this example, the <strong>.banner-ad class<\/strong> sets the width and height of the container. Adjust the values based on the specifications provided by the ad provider.<\/p><h4>Embeds (e.g., YouTube Video):<\/h4><p>html<\/p><p>Copy code<\/p><p>&lt;!DOCTYPE html&gt;<\/p><p>&lt;html lang=&#8221;en&#8221;&gt;<\/p><p>&lt;head&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;meta charset=&#8221;UTF-8&#8243;&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;title&gt;Embed Example&lt;\/title&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;style&gt;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .embed-container {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 position: relative;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 width: 100%;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 height: 0;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 padding-bottom: 56.25%; \/* 16:9 aspect ratio *\/<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .embed-container iframe {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 position: absolute;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 width: 100%;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 height: 100%;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p><p>\u00a0\u00a0\u00a0 &lt;\/style&gt;<\/p><p>&lt;\/head&gt;<\/p><p>&lt;body&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;div class=&#8221;embed-container&#8221;&gt;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;iframe src=&#8221;https:\/\/www.youtube.com\/embed\/your-video-id&#8221; frameborder=&#8221;0&#8243; allowfullscreen&gt;&lt;\/iframe&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;\/div&gt;<\/p><p>&lt;\/body&gt;<\/p><p>&lt;\/html&gt;<\/p><p>In this example, the <strong>.embed-container<\/strong> class maintains a responsive aspect ratio for the embedded content. Replace <strong>&#8220;https:\/\/www.youtube.com\/embed\/your-video-id&#8221;<\/strong> with the actual embed URL.<\/p><h4>iFrames:<\/h4><p>html<\/p><p>Copy code<\/p><p>&lt;!DOCTYPE html&gt;<\/p><p>&lt;html lang=&#8221;en&#8221;&gt;<\/p><p>&lt;head&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;meta charset=&#8221;UTF-8&#8243;&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;title&gt;iFrame Example&lt;\/title&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;style&gt;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .iframe-container {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 width: 800px; \/* Set the desired width *\/<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 height: 600px; \/* Set the desired height *\/<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .iframe-container iframe {<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 width: 100%;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 height: 100%;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 border: none; \/* Remove border if needed *\/<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p><p>\u00a0\u00a0\u00a0 &lt;\/style&gt;<\/p><p>&lt;\/head&gt;<\/p><p>&lt;body&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;div class=&#8221;iframe-container&#8221;&gt;<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;iframe src=&#8221;your-iframe-content.html&#8221;&gt;&lt;\/iframe&gt;<\/p><p>\u00a0\u00a0\u00a0 &lt;\/div&gt;<\/p><p>&lt;\/body&gt;<\/p><p>&lt;\/html&gt;<\/p><p>In this example, the <strong>.iframe-container<\/strong> class sets the width and height of the container. Adjust the values based on the requirements of the content you&#8217;re embedding.<\/p><p>\u00a0<\/p><p>These examples are just for references, and you should customize the dimensions based on your specific needs and design considerations. Plus, always ensure that the specified dimensions align with the recommendations provided by the ad network, embed provider, or content source.<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0a77b4a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0a77b4a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c91f6f2\" data-id=\"c91f6f2\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b40046e elementor-widget elementor-widget-heading\" data-id=\"b40046e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Add Custom Font to Your Website<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cfe9956 elementor-widget elementor-widget-text-editor\" data-id=\"cfe9956\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><h4>Adding a custom font can improve your CLS Score by:<\/h4><h5>Preventing Flash of Invisible Text (FOIT):<\/h5><p>When a webpage loads, browsers initially render text using a default font and then switch to the custom font once it&#8217;s downloaded. This process can cause a Flash of Invisible Text (FOIT), leading to sudden and unexpected layout shifts.<\/p><p>By specifying a custom font in the HTML and CSS, you reduce the chances of FOIT, providing a more stable and consistent user experience.<\/p><h5>Avoiding Flash of Unstyled Text (FOUT):<\/h5><p>Flash of Unstyled Text (FOUT) occurs when the default font is displayed before the custom font is loaded. This can also result in unexpected layout shifts as the text changes appearance.<\/p><p>Specifying the custom font in the HTML and CSS helps minimize FOUT, ensuring that the correct font is applied once it becomes available.<\/p><h5>Ensuring Predictable Text Sizes:<\/h5><p>Custom fonts often have different metrics compared to default system fonts. If your website relies on system fonts, the shift to a custom font can lead to changes in text size and spacing, causing layout shifts.<\/p><p>By using a custom font and defining its characteristics in your CSS, you ensure more predictable text sizes and reduce the likelihood of layout shifts.<\/p><h5>Optimizing Font Loading:<\/h5><p>Custom fonts loaded from external sources, such as Google Fonts, are often optimized for performance. These services employ techniques like preloading and font subsetting to ensure efficient and fast loading.<\/p><p>Properly configured font loading can help minimize delays in rendering and reduce the chances of layout shifts during the loading process.<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2a975f4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2a975f4\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-359c9ed\" data-id=\"359c9ed\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c9b69fa elementor-widget elementor-widget-heading\" data-id=\"c9b69fa\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to Add Custom Font to your Website?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dfa5cc4 elementor-widget elementor-widget-text-editor\" data-id=\"dfa5cc4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><ol><li><strong>Choose a Font:<\/strong> Visit <a href=\"https:\/\/fonts.google.com\/\">Google Fonts<\/a> and choose a font that fits your website&#8217;s design and branding. Once you&#8217;ve selected a font, click on it, and you&#8217;ll see an option to customize.<\/li><li><strong>Customize and Get the Code:<\/strong> Customize the font as needed (weight, style, etc.), and click on the &#8220;Embed&#8221; tab. You&#8217;ll see code snippets that you can add to your HTML or CSS.<\/li><li><strong>Add the Font Link to HTML:<\/strong> Copy the provided link tag and paste it into the section of your HTML document. This will load the font from the Google Fonts CDN.<\/li><\/ol><p>Replace <strong>YourSelectedFont<\/strong> with the actual name of the font you selected.<\/p><ol><li><strong>Apply the Font in CSS:<\/strong> In your CSS, use the selected font for the desired elements. This ensures that the custom font is applied to your website&#8217;s text.<\/li><\/ol><p>body {<\/p><p>\u00a0\u00a0\u00a0 font-family: &#8216;YourSelectedFont&#8217;, sans-serif;<\/p><p>}<\/p><p>This CSS rule sets the custom font for the entire body of your website. Adjust it based on your specific styling needs.<\/p><ol start=\"5\"><li><strong> Ensure Proper Loading:<\/strong> Ensure that the font is loading asynchronously and doesn&#8217;t block rendering. You can achieve this by using the <strong>async<\/strong> attribute in the  tag:<\/li><\/ol><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5cdbfde elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5cdbfde\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2939912\" data-id=\"2939912\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cfc2157 elementor-widget elementor-widget-heading\" data-id=\"cfc2157\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Review Dynamically Injected Content<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-23f67b8 elementor-widget elementor-widget-text-editor\" data-id=\"23f67b8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>Websites often use dynamic contents to persuade users to make a specific action. However, new elements popping up at the top or bottom of page, can create a shift in content. Hence, keep your dynamic content to a limit.<\/p><p><strong>Review dynamically injecting content though the following:<\/strong><\/p><ol><li><strong>Inviting Users to Initiate Changes:<\/strong><ul><li><strong>Implementation:<\/strong> Introduce user interaction elements, such as a &#8220;Read more&#8221; button or a &#8220;Refresh&#8221; button that users can voluntarily click to trigger the loading of new content.<\/li><li><strong>Considerations:<\/strong> Ensure that layout shifts triggered by user interactions are kept within 500ms to align with the best practices for CLS.<\/li><\/ul><\/li><li><strong>Loading Content Off-Screen:<\/strong><ul><li><strong>Implementation:<\/strong> Load dynamic content off-screen, outside the user&#8217;s viewport, and use an overlay or notification (e.g., a &#8220;Scroll Up&#8221; notification) to invite users to view the new content when they choose to do so.<\/li><li><strong>Considerations:<\/strong> Since off-screen shifts do not contribute to CLS, this approach helps maintain a stable on-screen layout.<\/li><\/ul><\/li><li><strong>Using a Fixed Size Container:<\/strong><ul><li><strong>Implementation:<\/strong> Utilize fixed-size containers, such as carousels, to present dynamic content. Carousels can be a suitable alternative if the new content replaces an existing element, helping to prevent layout shifts.<\/li><li><strong>Considerations:<\/strong> Ensure that any interactive elements like links or controls within the fixed-size container wait for the transition to avoid accidental clicks and potential disruptions.<\/li><\/ul><\/li><\/ol><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5b5da36 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5b5da36\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6a894e2\" data-id=\"6a894e2\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c78ae3e elementor-widget elementor-widget-heading\" data-id=\"c78ae3e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Conclusion<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-59d9c5e elementor-widget elementor-widget-text-editor\" data-id=\"59d9c5e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\"><p>As with any web development strategy, testing and monitoring are key. Regularly review your site&#8217;s performance using tools like Google Lighthouse, PageSpeed Insights, or browser developer tools to ensure that these implementations effectively minimize layout shifts and contribute to a positive user experience.<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"featured_media":0,"template":"","categories":[6,40],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.10 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cumulative Layout Shift: SEO impact, Inspect and Improve CLS<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cumulative Layout Shift: SEO impact, Inspect and Improve CLS\" \/>\n<meta property=\"og:description\" content=\"Imagine you are about to click or tap a button on a website, and the button moves, and you end up clicking something else. Not just buttons, it happens with images, text, videos, and other interactive elements as well. This shift in elements is calculated through Cumulative Layout Shift (CLS), a crucial part of\u00a0Core Web...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/\" \/>\n<meta property=\"og:site_name\" content=\"Dzinepixel Webstudio\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Dzinepixel\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-23T13:27:23+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Description-1024x683.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/\",\"url\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/\",\"name\":\"Cumulative Layout Shift: SEO impact, Inspect and Improve CLS\",\"isPartOf\":{\"@id\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#website\"},\"datePublished\":\"2023-12-26T07:16:29+00:00\",\"dateModified\":\"2024-05-23T13:27:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cumulative Layout Shift: Why CLS is Important for SEO and How to Improve It?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#website\",\"url\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/\",\"name\":\"Dzinepixel Webstudio\",\"description\":\"BRANDING | SEO OPTIMIZATION | SMO MARKETING\",\"publisher\":{\"@id\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#organization\",\"name\":\"Dzinepixel Webstudio\",\"url\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.dzinepixel.com\/wp-content\/uploads\/2022\/10\/logo.png\",\"contentUrl\":\"https:\/\/www.dzinepixel.com\/wp-content\/uploads\/2022\/10\/logo.png\",\"width\":127,\"height\":89,\"caption\":\"Dzinepixel Webstudio\"},\"image\":{\"@id\":\"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/dzinepixel\/mycompany\/\",\"https:\/\/www.facebook.com\/Dzinepixel\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cumulative Layout Shift: SEO impact, Inspect and Improve CLS","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/","og_locale":"en_US","og_type":"article","og_title":"Cumulative Layout Shift: SEO impact, Inspect and Improve CLS","og_description":"Imagine you are about to click or tap a button on a website, and the button moves, and you end up clicking something else. Not just buttons, it happens with images, text, videos, and other interactive elements as well. This shift in elements is calculated through Cumulative Layout Shift (CLS), a crucial part of\u00a0Core Web...","og_url":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/","og_site_name":"Dzinepixel Webstudio","article_publisher":"https:\/\/www.facebook.com\/Dzinepixel","article_modified_time":"2024-05-23T13:27:23+00:00","og_image":[{"url":"http:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-content\/uploads\/2023\/12\/Description-1024x683.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/","url":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/","name":"Cumulative Layout Shift: SEO impact, Inspect and Improve CLS","isPartOf":{"@id":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#website"},"datePublished":"2023-12-26T07:16:29+00:00","dateModified":"2024-05-23T13:27:23+00:00","breadcrumb":{"@id":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/blog\/cumulative-layout-shift-why-cls-is-important-for-seo-and-how-to-improve-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/"},{"@type":"ListItem","position":2,"name":"Cumulative Layout Shift: Why CLS is Important for SEO and How to Improve It?"}]},{"@type":"WebSite","@id":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#website","url":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/","name":"Dzinepixel Webstudio","description":"BRANDING | SEO OPTIMIZATION | SMO MARKETING","publisher":{"@id":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#organization","name":"Dzinepixel Webstudio","url":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#\/schema\/logo\/image\/","url":"https:\/\/www.dzinepixel.com\/wp-content\/uploads\/2022\/10\/logo.png","contentUrl":"https:\/\/www.dzinepixel.com\/wp-content\/uploads\/2022\/10\/logo.png","width":127,"height":89,"caption":"Dzinepixel Webstudio"},"image":{"@id":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/dzinepixel\/mycompany\/","https:\/\/www.facebook.com\/Dzinepixel"]}]}},"_links":{"self":[{"href":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-json\/wp\/v2\/blog\/2057"}],"collection":[{"href":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-json\/wp\/v2\/types\/blog"}],"version-history":[{"count":41,"href":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-json\/wp\/v2\/blog\/2057\/revisions"}],"predecessor-version":[{"id":2885,"href":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-json\/wp\/v2\/blog\/2057\/revisions\/2885"}],"wp:attachment":[{"href":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-json\/wp\/v2\/media?parent=2057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-json\/wp\/v2\/categories?post=2057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.dzinepixel.com\/dzinepixel_wp\/wp-json\/wp\/v2\/tags?post=2057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}