{"id":119113,"date":"2020-11-06T15:22:24","date_gmt":"2020-11-06T07:22:24","guid":{"rendered":"https:\/\/seo-hacker.com\/?p=19113"},"modified":"2021-05-11T05:48:40","modified_gmt":"2021-05-11T05:48:40","slug":"cumulative-layout-shift","status":"publish","type":"post","link":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/","title":{"rendered":"Core Web Vitals Guide Part 4: Cumulative Layout Shift (CLS)"},"content":{"rendered":"<p><a href=\"https:\/\/seo-hacker.com\/cumulative-layout-shift\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"fpi-shvzz\" class=\"alignnone wp-image-19114 size-full lazyload\" data-src=\"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg\" alt=\"optimizing for cumulative layout shifts\" width=\"1024\" height=\"768\" data-wp-pid=\"19114\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">When there are unexpected movements within the contents of a web page, it could be a frustrating experience to a user because it could interrupt something that they are doing on the page.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Just imagine trying to scroll through the catalog of an ecommerce website and suddenly the products started to move left and right on its own and before you know it, you\u2019ve accidentally placed the wrong products in your shopping cart. That is an example of what Cumulative Layout Shift means.<\/span><\/p>\n<p><!--more--><\/p>\n<p><span style=\"font-weight: 400;\">We\u2019ve talked about <\/span><i><span style=\"font-weight: 400;\">loading performance<\/span><\/i><span style=\"font-weight: 400;\"> in <a href=\"https:\/\/seo-hacker.com\/largest-contentful-paint\/\" target=\"_blank\" rel=\"noopener noreferrer\">Largest Contentful Paint<\/a>. We then discussed <\/span><i><span style=\"font-weight: 400;\">interactivity<\/span><\/i><span style=\"font-weight: 400;\"> in <a href=\"https:\/\/seo-hacker.com\/first-input-delay\/\" target=\"_blank\" rel=\"noopener noreferrer\">First Input Delay<\/a>. Now in the 4th part of our series about the <a href=\"https:\/\/seo-hacker.com\/core-web-vitals-optimization-guide\/\" target=\"_blank\" rel=\"noopener noreferrer\">Core Web Vitals<\/a>, we\u2019ll be talking about Cumulative Layout Shift or CLS which deals with <\/span><i><span style=\"font-weight: 400;\">visual stability<\/span><\/i><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">What is Cumulative Layout Shift (CLS)?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Cumulative Layout Shift or CLS is the sudden movement of a webpage\u2019s content layout. A layout shift happens when an element in the <\/span><a href=\"https:\/\/www.w3schools.com\/css\/css_rwd_viewport.asp\"><span style=\"font-weight: 400;\">viewport<\/span><\/a><span style=\"font-weight: 400;\"> moved from its starting position during page load. These elements are called unstable elements.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example, while trying to read a blog post, an ad suddenly pops up in between the paragraphs which leads the text blocks to move down. These are unpleasant movements to users because it interrupts anything that they are doing.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/web.dev\/cls\/\" target=\"_blank\" rel=\"noopener noreferrer\">A good CLS score<\/a> is less than 0.1. It may seem impossible to achieve, but it is possible. Any score between\u00a0 0.1 to 0.25 needs improvement while anything above 0.25 is considered poor.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-18867 lazyload\" data-src=\"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/07\/cumulative-layout-shift.jpg\" alt=\"cumulative-layout-shift\" width=\"600\" data-wp-pid=\"18867\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/226;\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">How is the Cumulative Layout Shift Score Computed?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The Cumulative Layout Shift score of a page is based on two fractions: the impact fraction and distance fraction.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><i><span style=\"font-weight: 400;\">impact fraction<\/span><\/i><span style=\"font-weight: 400;\"> measures the impacted area of the unstable elements in the viewport between two frames while <\/span><i><span style=\"font-weight: 400;\">distance fraction <\/span><\/i><span style=\"font-weight: 400;\">measures the distance the unstable elements moved, whether it\u2019s vertically or horizontally, divided by the viewport\u2019s largest dimension (width or height).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The formula in computing CLS score is:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Layout shift score = impact fraction * distance fraction<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s put this into work and use a blog post as an example.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this screenshot, you\u2019re seeing the first part of the Complete Core Web Vitals Guide blog post that I published on mobile. Let\u2019s say that an ad suddenly popped up in between the navigation bar and the title of the blog post so everything else had to move down.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Impact fraction takes into account the union of the affected elements in the viewport. In this case, the post title, featured image, and a piece of content was affected but other elements such as the navigation bar and header did not move. This is about 85% of the viewport so the impact fraction is 0.85.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-19117 lazyload\" data-src=\"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/CLS-2.png\" alt=\"impact fraction\" width=\"400\" data-wp-pid=\"19117\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 400px; --smush-placeholder-aspect-ratio: 400\/800;\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In the next screenshot, we are now measuring the distance fraction. Since we\u2019re on mobile, the largest dimension is height. The unstable element moved the viewport by 30% thus the distance fraction is 0.30.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-19118 lazyload\" data-src=\"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/CLS-3.png\" alt=\"distance fraction\" width=\"400\" data-wp-pid=\"19118\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 400px; --smush-placeholder-aspect-ratio: 400\/800;\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Using the formula, 0.85 * 0.30, our CLS score for this particular example is 0.255 which falls under the \u201cneeds improvement\u201d category.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Take note that CLS is not only computed above the fold. As the user scrolls through the page, any layout shifts will also be taken into account.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">What causes Poor CLS?<\/span><\/h2>\n<h2><span style=\"font-weight: 400;\">Images and Videos without Dimensions<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">When you specify the dimension of images and videos using width and height, the browser automatically allots space for it during page load. However, with the shift to responsive web design, web developers started using CSS to size images.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Instead of having an allotted space, the browser will only know the dimensions of an image or video once it starts downloading the resources. So every time an image or video would finish downloading, other elements will start moving.\u00a0\u00a0<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Dynamic Ads and Embeds<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Similar to images and videos, dynamic website advertisements contribute a lot to layout shifts on a webpage. Webmasters tend to prefer dynamic ads because they are easy to install and it automatically runs ads on your website. However, they have little to no control and the size of ads may vary all the time.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The same goes for embeds. When you\u2019re trying to embed videos, feeds, and maps on pages, browsers won\u2019t be able to identify what exactly is contained in the embed. And if there is no space allotted for them, other elements would have to move so that the browser could make room for the embedded element.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Dynamically Injected Content<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Dynamic content is common to most websites. They could come in the form of CTA buttons, banners, forms, related articles, and others that pops in the content. It has the same problem as the others that were mentioned if there were no spaces allotted for them, they could move other elements once they load.\u00a0<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Custom Web Fonts<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">It\u2019s no surprise that images, videos, ads, and dynamic content affect CLS because they tend to take up a lot of space. But many do not know that custom fonts can also affect CLS. There are what we call web-safe fonts. These are the default fonts that can be read by any browser.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">However, if you\u2019re using custom fonts, the browser has to use a fallback font or FOUT (flash of unstyled text) while it is downloading the font that you used. The browser may also use invisible text or FOIT (flash of invisible text) where the browser will not show anything until the font is fully loaded. Both of which will affect elements on your page because font sizes may vary.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Optimizing Cumulative Layout Shifts<\/span><\/h2>\n<h2><span style=\"font-weight: 400;\">Specify Dimensions of Images and Videos<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Make sure that every time you add an image or video elements, specify their width and height. Browsers nowadays automatically use the height and width that you set as the aspect ratios. You can even just set the width and the browser will automatically set the height. No layout shifts will happen as the browser calculates the aspect ratio of an image using the width and height before it loads.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Reserve Space using CSS<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">If there is one thing that is common for most of the elements that affect CLS, it\u2019s that no space is reserved for them. You can use techniques like CSS aspect ratio boxes so the browser knows how much space it needs to a lot to ads and embeds while the page loads.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">One thing to take note of is when you\u2019re reserving space for dynamic ads, the size of the ads may vary. So if you\u2019re allotting a big space for ads and small ads appear, there will be a lot of white space on your page but this doesn\u2019t affect CLS since there was space that was allotted.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Avoid Dynamic Content Above Existing Content<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">As much as possible, avoid putting dynamic content above the existing content, especially in the above-the-fold part of the page. However if you can\u2019t avoid them, make sure that there is sufficient space for them or you could also make it so that it would only be executed through user interaction.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Optimize Loading of Fonts<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The first tip is to use font-display. The browser will temporarily load a web-safe font in place of the custom font while it is still loading and avoid FOIT.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Another tip, which is only compatible with Chrome 83, is to use <\/span><a href=\"https:\/\/web.dev\/preload-optional-fonts\/\"><span style=\"font-weight: 400;\">link rel=\u201dpreload\u201d and font-display: optional<\/span><\/a><span style=\"font-weight: 400;\"> which may completely eliminate layout shifts caused by fonts.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Extra Tip: User-Initiated Layout Shifts<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">According to Google, a layout shift is only bad if it is unexpected by the user. This means elements like hamburger menus, dropdowns, and others do not count towards the CLS of your website as they need to have user interaction before they are executed.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example, on the FAQ page of our <a href=\"https:\/\/seo-hacker.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">SEO services website<\/a>, answer to the questions are in a dropdown. Although they cause layout shifts, these are expected by the users because they need to click on it. As you can see, the CLS score of the page is 0.001 which is good by Google\u2019s standards.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-large wp-image-19119 lazyload\" data-src=\"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/CLS-score-of-FAQ-page-1024x682.png\" alt=\"\" width=\"600\" data-wp-pid=\"19119\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/682;\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">Test Your CLS<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Make sure to check if the improvements you\u2019ve made also improved your Core Web Vitals score using the various field and lab tools that are available:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Field Tools:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/developers.google.com\/web\/tools\/chrome-user-experience-report\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Chrome User Experience Reports<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/developers.google.com\/speed\/pagespeed\/insights\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">PageSpeed Insights<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/support.google.com\/webmasters\/answer\/9205520?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Google Search Console Core Web Vitals Report<\/span><\/a><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Lab Tools:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/developers.google.com\/web\/tools\/chrome-devtools\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Chrome DevTools<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/developers.google.com\/web\/tools\/lighthouse\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Lighthouse<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><a href=\"https:\/\/webpagetest.org\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">WebPageTest<\/span><\/a><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">You can also measure CLS using JavaScript which is in the <\/span><a href=\"https:\/\/github.com\/GoogleChrome\/web-vitals\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Core Web Vitals JavaScript library<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When there are unexpected movements within the contents of a web page, it could be a frustrating experience to a user because it could interrupt something that they are doing on the page. Just imagine trying to scroll through the catalog of an ecommerce website and suddenly the products started to move left and right [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"wl_entities_gutenberg":"","footnotes":""},"categories":[100008,100009,100013],"tags":[103623,103702],"wl_entity_type":[102583],"class_list":["post-119113","post","type-post","status-publish","format-standard","hentry","category-seo","category-seo-advice","category-seo-tips-and-tricks","tag-core-web-vitals","tag-cumulative-layout-shift","wl_entity_type-article"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cumulative Layout Shift Optimization Guide<\/title>\n<meta name=\"description\" content=\"Cumulative Layout Shift is a Core Web Vital Metric that deals with visual stability that greatly impacts a user&#039;s experience.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/seo-hacker.com\/cumulative-layout-shift\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cumulative Layout Shift Optimization Guide\" \/>\n<meta property=\"og:description\" content=\"Cumulative Layout Shift is a Core Web Vital Metric that deals with visual stability that greatly impacts a user&#039;s experience.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/seo-hacker.com\/cumulative-layout-shift\/\" \/>\n<meta property=\"og:site_name\" content=\"SEO Services Agency in Manila, Philippines\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-06T07:22:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-11T05:48:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg\" \/>\n<meta name=\"author\" content=\"Sean Si\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/\"},\"author\":{\"name\":\"Sean Si\",\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/#\\\/schema\\\/person\\\/5565b7823135bb49dd1618bbcaec2dbf\"},\"headline\":\"Core Web Vitals Guide Part 4: Cumulative Layout Shift (CLS)\",\"datePublished\":\"2020-11-06T07:22:24+00:00\",\"dateModified\":\"2021-05-11T05:48:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/\"},\"wordCount\":1406,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/seo-hacker.com\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg\",\"keywords\":[\"core web vitals\",\"cumulative layout shift\"],\"articleSection\":[\"SEO\",\"SEO Advice\",\"SEO tips and tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/\",\"url\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/\",\"name\":\"Cumulative Layout Shift Optimization Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/seo-hacker.com\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg\",\"datePublished\":\"2020-11-06T07:22:24+00:00\",\"dateModified\":\"2021-05-11T05:48:40+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/#\\\/schema\\\/person\\\/5565b7823135bb49dd1618bbcaec2dbf\"},\"description\":\"Cumulative Layout Shift is a Core Web Vital Metric that deals with visual stability that greatly impacts a user's experience.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/#primaryimage\",\"url\":\"https:\\\/\\\/seo-hacker.com\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg\",\"contentUrl\":\"https:\\\/\\\/seo-hacker.com\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg\",\"width\":1024,\"height\":768,\"caption\":\"optimizing for cumulative layout shifts\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/cumulative-layout-shift\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/seo-hacker.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Core Web Vitals Guide Part 4: Cumulative Layout Shift (CLS)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/#website\",\"url\":\"https:\\\/\\\/seo-hacker.com\\\/\",\"name\":\"SEO Services Agency in Manila, Philippines\",\"description\":\"SEO Hacker is an SEO Agency and SEO Blog in the Philippines. Let us take your website to the top of the search results with our holistic white-hat strategies. Inquire today!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/seo-hacker.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/seo-hacker.com\\\/#\\\/schema\\\/person\\\/5565b7823135bb49dd1618bbcaec2dbf\",\"name\":\"Sean Si\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3225fbc3fa29eafa997934ff429b9b1949121b469f7a110079f055ad4eeffd25?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3225fbc3fa29eafa997934ff429b9b1949121b469f7a110079f055ad4eeffd25?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3225fbc3fa29eafa997934ff429b9b1949121b469f7a110079f055ad4eeffd25?s=96&d=mm&r=g\",\"caption\":\"Sean Si\"},\"description\":\"Sean Si is a Filipino motivational speaker and a Leadership Speaker in the Philippines. He is the head honcho and editor-in-chief of SEO Hacker. He does SEO Services for companies in the Philippines and Abroad. Connect with him at Facebook, LinkedIn or Twitter. Check out his new project...\",\"sameAs\":[\"https:\\\/\\\/sean.si\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cumulative Layout Shift Optimization Guide","description":"Cumulative Layout Shift is a Core Web Vital Metric that deals with visual stability that greatly impacts a user's experience.","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:\/\/seo-hacker.com\/cumulative-layout-shift\/","og_locale":"en_US","og_type":"article","og_title":"Cumulative Layout Shift Optimization Guide","og_description":"Cumulative Layout Shift is a Core Web Vital Metric that deals with visual stability that greatly impacts a user's experience.","og_url":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/","og_site_name":"SEO Services Agency in Manila, Philippines","article_published_time":"2020-11-06T07:22:24+00:00","article_modified_time":"2021-05-11T05:48:40+00:00","og_image":[{"url":"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg","type":"","width":"","height":""}],"author":"Sean Si","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/#article","isPartOf":{"@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/"},"author":{"name":"Sean Si","@id":"https:\/\/seo-hacker.com\/#\/schema\/person\/5565b7823135bb49dd1618bbcaec2dbf"},"headline":"Core Web Vitals Guide Part 4: Cumulative Layout Shift (CLS)","datePublished":"2020-11-06T07:22:24+00:00","dateModified":"2021-05-11T05:48:40+00:00","mainEntityOfPage":{"@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/"},"wordCount":1406,"commentCount":0,"image":{"@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/#primaryimage"},"thumbnailUrl":"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg","keywords":["core web vitals","cumulative layout shift"],"articleSection":["SEO","SEO Advice","SEO tips and tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/seo-hacker.com\/cumulative-layout-shift\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/","url":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/","name":"Cumulative Layout Shift Optimization Guide","isPartOf":{"@id":"https:\/\/seo-hacker.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/#primaryimage"},"image":{"@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/#primaryimage"},"thumbnailUrl":"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg","datePublished":"2020-11-06T07:22:24+00:00","dateModified":"2021-05-11T05:48:40+00:00","author":{"@id":"https:\/\/seo-hacker.com\/#\/schema\/person\/5565b7823135bb49dd1618bbcaec2dbf"},"description":"Cumulative Layout Shift is a Core Web Vital Metric that deals with visual stability that greatly impacts a user's experience.","breadcrumb":{"@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/seo-hacker.com\/cumulative-layout-shift\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/#primaryimage","url":"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg","contentUrl":"https:\/\/seo-hacker.com\/wp-content\/uploads\/2020\/11\/20-Optimizing-for-Cumulative-Layout-Shifts-CP.jpg","width":1024,"height":768,"caption":"optimizing for cumulative layout shifts"},{"@type":"BreadcrumbList","@id":"https:\/\/seo-hacker.com\/cumulative-layout-shift\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/seo-hacker.com\/"},{"@type":"ListItem","position":2,"name":"Core Web Vitals Guide Part 4: Cumulative Layout Shift (CLS)"}]},{"@type":"WebSite","@id":"https:\/\/seo-hacker.com\/#website","url":"https:\/\/seo-hacker.com\/","name":"SEO Services Agency in Manila, Philippines","description":"SEO Hacker is an SEO Agency and SEO Blog in the Philippines. Let us take your website to the top of the search results with our holistic white-hat strategies. Inquire today!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/seo-hacker.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/seo-hacker.com\/#\/schema\/person\/5565b7823135bb49dd1618bbcaec2dbf","name":"Sean Si","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3225fbc3fa29eafa997934ff429b9b1949121b469f7a110079f055ad4eeffd25?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3225fbc3fa29eafa997934ff429b9b1949121b469f7a110079f055ad4eeffd25?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3225fbc3fa29eafa997934ff429b9b1949121b469f7a110079f055ad4eeffd25?s=96&d=mm&r=g","caption":"Sean Si"},"description":"Sean Si is a Filipino motivational speaker and a Leadership Speaker in the Philippines. He is the head honcho and editor-in-chief of SEO Hacker. He does SEO Services for companies in the Philippines and Abroad. Connect with him at Facebook, LinkedIn or Twitter. Check out his new project...","sameAs":["https:\/\/sean.si"]}]}},"_wl_alt_label":[],"jetpack_featured_media_url":"","wl:entity_url":"http:\/\/data.wordlift.io\/wl0320\/post\/core_web_vitals_guide_part_4__cumulative_layout_shift_cls","_links":{"self":[{"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/posts\/119113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/comments?post=119113"}],"version-history":[{"count":0,"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/posts\/119113\/revisions"}],"wp:attachment":[{"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/media?parent=119113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/categories?post=119113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/tags?post=119113"},{"taxonomy":"wl_entity_type","embeddable":true,"href":"https:\/\/seo-hacker.com\/wp-json\/wp\/v2\/wl_entity_type?post=119113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}