Forrester Total Economic Impact™ study finds Edwin AI delivered a 313% ROI for composite organization.

Read more

Partners

Docs

LM Academy

LM Community

Platform

Solutions

Pricing

Resources

Company

Platform
  • Infrastructure
  • Cloud & Multi-Cloud
  • Log Management
  • Edwin AI
Solution
  • Automation
  • Tool Consolidation
  • Reduce MTTR
  • Cost Optimization
Industry
  • Healthcare
  • Financial Services
  • Public Sector
  • MSP
Role
  • CIO
  • ITOps
  • CloudOps
  • AIOps
There is no result.
Try it free

14-day access to the full LogicMonitor platform

Explore Platform

One platform, one system for observability, intelligence, and action.

Agentic AIOps

Infrastructure Observability

Cloud Observability

Internet Performance Monitoring

Digital Experience Monitoring

Log Management

Agentic AIOps Overview

Autonomously detect, diagnose, and resolve issues across your environment.

Meet Edwin AI

Turn fragmented cross-domain event noise into explainable, guided action.

AI Agent

Deploy specialized AI agents to handle investigation across the incident lifecycle.

Event Intelligence

Compress raw alert storms into high-fidelity, prioritized insights.

AI Automation

Execute governed, closed-loop remediation across automation playbooks.

ITOps Context Graph

NEW

Unify topology, telemetry, and changes into an AI-ready context layer.

MCP

NEW

Establish traceable, secure governance boundaries for AI tool integrations.

Infrastructure Observability Overview

Full visibility across your entire hybrid estate to eliminate tool sprawl.

Network Monitoring

Accelerate time to innocence with deep network path and device visibility.

Server Monitoring

Track server health, OS metrics, and resource utilization across environments.

Remote Monitoring

Monitor distributed endpoints, branch networks, and remote facility health.

VM Monitoring

Maximize hypervisor performance and streamline compute capacity planning.

SD-WAN Monitoring

Keep multi-site cloud networks connected with real-time edge visibility.

Database Monitoring

Pinpoint database query bottlenecks to keep business applications fast.

Configuration Monitoring

Minimize change failure rates by tracking device configuration drift.

Storage Monitoring

Track SAN/NAS arrays, IOPS bottlenecks, and storage capacity trends.

Cloud Observability Overview

Multi-cloud and hybrid environments unified into a single operational pane.

Container Monitoring

Automated, real-time visibility for Kubernetes and ephemeral microservices.

AWS Monitoring

Track AWS services, scaling, and costs alongside on-premises data.

Google Cloud Monitoring

Monitor native GCP infrastructure, compute, and serverless resources.

Azure Monitoring

Comprehensive visibility into Azure environments, gateways, and workloads.

AI Monitoring

Track LLM infrastructure, GPU utilization, and AI application stack health.

Oracle Cloud Monitoring

Track OCI native compute, enterprise databases, and cloud storage.

SaaS Monitoring

Validate availability and workforce productivity for critical SaaS apps.

Internet Performance Monitoring Overview

Understand performance across the full stack wherever users depend on it.

Internet Health

NEW

Use global vantage points to independently validate internet outages.

Real User Monitoring

NEW

Capture actual customer journeys and frontend performance in real time.

Synthetic Monitoring

NEW

Emulate user transactions and SaaS workflows to catch problems early.

Endpoint Monitoring

NEW

Diagnose remote workforce digital experience across devices and networks.

Digital Experience Monitoring

See every dependency, regardless of ownership or location.

Website Monitoring

Protect revenue journeys with proactive synthetic checks and uptime tracking.

CDN Monitoring

NEW

Audit edge performance and latency variance across your CDN providers.

API Monitoring

NEW

Test endpoints and third-party API reliability for critical app integrations.

Application Performance Monitoring

Connect code execution and traces directly to infrastructure health.

DNS Monitoring

NEW

Speed up time-to-innocence by tracking global nameserver resolution times.

DevOps Lifecycle Monitoring

NEW

Protect release velocity by validating dependencies during deployments.

BGP Monitoring

NEW

Trace global routing changes and path leaks to secure internet reachability.

Log Management Overview

Centralize and correlate log data to resolve incidents before they escalate.

Log Analytics & Intelligence

Correlate contextual log data with metrics to speed up root-cause analysis.

3,000+ Integrations

Quickly deploy and manage 3,000+ collector-based and API-friendly integrations.

Learn more
Explore Solutions

Proactively manage modern hybrid environments with predictive insights, intelligent automation, and full-stack observability.

By Business Outcome

By Role

By Industry

Professional Services

Automation

Eliminate operational toil with safe, policy-governed remediation workflows.

Modernization and Transformation

Accelerate complex technology transitions while protecting core enterprise resilience.

Cloud Migration

Maintain workload performance throughout migration.

Tool Consolidation

Reduce licensing costs and silos by replacing fragmented monitoring tools.

Cost Optimization

Lower your total cost-to-serve by finding cloud waste and underused resources.

Operational Efficiency

Maximize team capacity by reducing alert storms and shift-handoff friction.

Reduce MTTR

Shorten war-rooms by surfacing topology-aware probable cause in mins.

Network Reachability

NEW

Independently audit external BGP, ISP, and SaaS provider connectivity boundaries.

Edge Deployment Optimization

NEW

Monitor SLOs, compare providers, and validate cloud and edge delivery.

Web Performance Optimization

NEW

Maximize digital checkout conversions by tracking global frontend latency metrics.

Application Resilience

NEW

Safeguard business services against transaction failures and costly downtime.

Workforce Productivity

NEW

Troubleshoot remote hardware and network issues to protect productivity.

CIO

Maximize enterprise resilience and align AI investments to measurable business ROI.

AIOps

Compress cross-domain event noise into explainable, automated ops leverage.

DevOps

Speed up releases by protecting engineering roadmaps from toil.

ITOps

Standardize incident response to reduce alert fatigue and after-hours work.

CloudOps

Unify multi-cloud visibility to optimize costs and track hybrid blast radius.

Healthcare

Protect continuity of care and EHR availability across clinical workflows.

Public Sector

Ensure mission continuity and audit readiness for citizen-facing services.

MSP

Protect service margins and scale ops using multi-tenant, AI-assisted triage.

Retail & E-commerce

Safeguard peak retail campaigns, POS uptime, and digital customer journeys.

Technology

Protect customer trust and engineering velocity with SLA-driven visibility.

Hospitality

Deliver frictionless guest experiences and keep booking engines online.

Education

Maintain always-on student portals, learning platforms, and campus networks.

Manufacturing

Prevent production downtime by unifying IT, OT-adjacent, and edge systems.

Financial Services

Secure transaction trust and meet strict resilience compliance requirements.

Why LogicMonitor?

Discover why leading IT teams trust us to unify hybrid observability and eliminate tool sprawl.

Learn more
Explore Resources

Check out our resource library for IT pros, featuring expert guides, strategies, and insights for smarter, AI-driven operations.

Resources

Upcoming Events

Platform Help

Blog

Insights and advice from the experts on all things observability and AI.

Case Studies

See what real users have to say about the LogicMonitor platform.

Webinars

Live and on-demand learning, all in one place.

IT Guides

Learn from expert guides on the topics that matter most to IT teams.

WEBINAR

Observability at Scale: How Topgolf…

August 26, 2026

Live

CONFERENCE

Digital X Cologne

September 8, 2026

Cologne

View all events

Join us at innovation-focused conferences, tech talks, webinars, and other events.

Support Docs

Access product docs, release notes, and support resources.

LM Community

Join the community to learn from peers, ask questions, and connect with experts.

Customer Education

Learn more about our platform through resources and live trainings.

2026 The Year of Autonomous IT

NEW

Discover the trends, benchmarks, and strategies driving the industry shift to Autonomous IT.

Read the report
About LogicMonitor

Our observability platform proactively delivers the insights and automation CIOs need to accelerate innovation.

Leadership

Meet the leaders building the future of observability and AI.

Our Customers

See the proof of how IT teams win with LogicMonitor.

Careers

Find job openings and learn about our employee benefits.

Newsroom

Stay current with our latest mentions, press releases, and events.

Culture

NEW

Join a collaborative, values-driven culture built on innovation and growth.

Security

Purpose-built security for the hybrid observability and AI era.

Contact & Locations

Connect with our experts to explore AI-powered observability solutions.

Sustainability

Our commitment to the environment and the people in it.

Forrester Total Economic Impact™ study finds Edwin AI delivered a 313% ROI for composite organization.

Read more
Try it free

Platform

Explore Platform

One platform, one system for observability, intelligence, and action.

Agentic AIOps

Infrastructure Observability

Cloud Observability

Internet Performance Monitoring

Digital Experience Monitoring

Log Management

3,000+ Integrations

Quickly deploy and manage 3,000+ collector-based and API-friendly integrations.

Solutions

Explore Solutions

Proactively manage modern hybrid environments with predictive insights, intelligent automation, and full-stack observability.

By Business Outcome

By Role

By Industry

Professional Services

Why LogicMonitor?

Discover why leading IT teams trust us to unify hybrid observability and eliminate tool sprawl.

Pricing

Resources

Explore Resources

Check out our resource library for IT pros, featuring expert guides, strategies, and insights for smarter, AI-driven operations.

Resources

Upcoming Events

Platform Help

NEW

2026 The Year of Autonomous IT

Discover the trends, benchmarks, and strategies driving the industry shift to Autonomous IT.

Company

About LogicMonitor

Our observability platform proactively delivers the insights and automation CIOs need to accelerate innovation.

Leadership

Meet the leaders building the future of observability and AI.

Careers

Find job openings and learn about our employee benefits.

Culture

NEW

Join a collaborative, values-driven culture built on innovation and growth.

Contact & Locations

Connect with our experts to explore AI-powered observability solutions.

Our Customers

See the proof of how IT teams win with LogicMonitor.

Newsroom

Stay current with our latest mentions, press releases, and events.

Security

Purpose-built security for the hybrid observability and AI era.

Sustainability

Our commitment to the environment and the people in it.

Partners

Docs

LM Academy

LM Community

Agentic AIOps

Agentic AIOps Overview

Autonomously detect, diagnose, and resolve issues across your environment.

Meet Edwin AI

Turn fragmented cross-domain event noise into explainable, guided action.

AI Agent

Deploy specialized AI agents to handle investigation across the incident lifecycle.

Event Intelligence

Compress raw alert storms into high-fidelity, prioritized insights.

AI Automation

Execute governed, closed-loop remediation across automation playbooks.

ITOps Context Graph

NEW

Unify topology, telemetry, and changes into an AI-ready context layer.

MCP

NEW

Establish traceable, secure governance boundaries for AI tool integrations.

Infrastructure Observability

Infrastructure Observability Overview

Full visibility across your entire hybrid estate to eliminate tool sprawl.

Network Monitoring

Accelerate time to innocence with deep network path and device visibility.

Server Monitoring

Track server health, OS metrics, and resource utilization across environments.

Remote Monitoring

Monitor distributed endpoints, branch networks, and remote facility health.

VM Monitoring

Maximize hypervisor performance and streamline compute capacity planning.

SD-WAN Monitoring

Keep multi-site cloud networks connected with real-time edge visibility.

Database Monitoring

Pinpoint database query bottlenecks to keep business applications fast.

Configuration Monitoring

Minimize change failure rates by tracking device configuration drift.

Storage Monitoring

Track SAN/NAS arrays, IOPS bottlenecks, and storage capacity trends.

Cloud Observability

Cloud Observability Overview

Multi-cloud and hybrid environments unified into a single operational pane.

Container Monitoring

Automated, real-time visibility for Kubernetes and ephemeral microservices.

AWS Monitoring

Track AWS services, scaling, and costs alongside on-premises data.

Google Cloud Monitoring

Monitor native GCP infrastructure, compute, and serverless resources.

Azure Monitoring

Comprehensive visibility into Azure environments, gateways, and workloads.

AI Monitoring

Track LLM infrastructure, GPU utilization, and AI application stack health.

Oracle Cloud Monitoring

Track OCI native compute, enterprise databases, and cloud storage.

SaaS Monitoring

Validate availability and workforce productivity for critical SaaS apps.

Internet Performance Monitoring

Internet Performance Monitoring Overview

Understand performance across the full stack wherever users depend on it.

Internet Health

NEW

Use global vantage points for independent validation of internet outages.

Real User Monitoring

NEW

Capture actual customer journeys and frontend performance in real time.

Synthetic Monitoring

NEW

Emulate user transactions and SaaS workflows to catch problems early.

Endpoint Monitoring

NEW

Diagnose remote workforce digital experience across devices and networks.

Digital Experience Monitoring

Digital Experience Monitoring

See every dependency, regardless of ownership or location.

Website Monitoring

Protect revenue journeys with proactive synthetic checks and uptime tracking.

CDN Monitoring

NEW

Audit edge performance and latency variance across your CDN providers.

API Monitoring

NEW

Test endpoints and third-party API reliability for critical app integrations.

Application Performance Monitoring

Connect code execution and traces directly to infrastructure health.

DNS Monitoring

NEW

Speed up time to innocence by tracking global nameserver resolution times.

DevOps Lifecycle Monitoring

NEW

Protect release velocity by validating dependencies during deployments.

BGP Monitoring

NEW

Trace global routing changes and path leaks to secure internet reachability.

Logs

Log Management Overview

Centralize and correlate log data to resolve incidents before they escalate.

Log Analytics & Intelligence

Correlate contextual log data with metrics to speed up root-cause analysis.

By Business Outcome

Automation

Eliminate repetitive operational toil with safe, policy-governed remediation workflows.

Modernization and Transformation

Accelerate complex technology transitions while protecting core enterprise resilience.

Cloud Migration

Maintain workload performance throughout migration.

Tool Consolidation

Reduce licensing costs and data silos by replacing fragmented monitoring tools.

Cost Optimization

Lower your total cost-to-serve by finding cloud waste and underused resources.

Operational Efficiency

Maximize team capacity by reducing alert storms and shift-handoff friction.

Reduce MTTR

Shorten war-room by surfacing topology-aware probable cause in mins.

Network Reachability

NEW

Independently audit external BGP, ISP, and SaaS provider connectivity boundaries.

Edge Deployment Optimization

NEW

Monitor SLOs, compare providers, and validate cloud and edge delivery.

Web Performance Optimization

NEW

Maximize digital checkout conversions by tracking global frontend latency metrics.

Application Resilience

NEW

Safeguard business services against transaction failures and costly downtime.

Workforce Productivity

NEW

Troubleshoot remote hardware and network issues to protect productivity.

By Role

CIO

Maximize enterprise resilience and align AI investments to measurable business ROI.

AIOps

Compress cross-domain event noise into explainable, automated ops leverage.

DevOps

Speed up releases by protecting engineering roadmaps from toil.

ITOps

Standardize incident response to reduce alert fatigue and after-hours work.

CloudOps

Unify multi-cloud visibility to optimize costs and track hybrid blast radius.

By Industry

Healthcare

Protect continuity of care and EHR availability across clinical workflows.

Public Sector

Ensure mission continuity and audit readiness for citizen-facing services.

MSP

Protect service margins and scale ops using multi-tenant, AI-assisted triage.

Retail & E-commerce

Safeguard peak retail campaigns, POS uptime, and digital customer journeys.

Technology

Protect customer trust and engineering velocity with SLA-driven visibility.

Hospitality

Deliver frictionless guest experiences and keep booking engines online.

Education

Maintain always-on student portals, learning platforms, and campus networks.

Manufacturing

Prevent production downtime by unifying IT, OT-adjacent, and edge systems.

Financial Services

Secure transaction trust and meet strict operational resilience compliance requirements.

Resources

Blog

Insights and advice from the experts on all things observability and AI.

Case Studies

See what real users have to say about the LogicMonitor platform.

Webinars

Live and on-demand learning, all in one place.

IT Guides

Learn from expert guides on the topics that matter most to IT teams.

Upcoming Events

WEBINAR

Observability at scale: How Topgolf…

August 26, 2026

Viee of a bridge over a river leading to Cologne cathedral rising against the skyline and a blue sky

CONFERENCE

Digital X Cologne

September 8, 2026

View all events

Join us at innovation-focused conferences, tech talks, webinars, and other events.

Platform Help

Support Docs

Access product docs, release notes, and support resources.

LM Community

Join the community to learn from peers, ask questions, and connect with experts.

Customer Education

Learn more about our platform through resources and live trainings.

CORE WEB VITALS

Cumulative Layout Shift Examples & Best Practices

CLS measures unexpected layout shifts on your page as it loads. Learn what causes a poor score, how CLS is calculated, and the three most effective fixes.

10–15 minutes
June 24, 2026
Denton Chikura

IN THIS DEEP DIVE

CHAPTERS

    NEWSLETTER

    Subscribe to our newsletter

    Get the latest blogs, whitepapers, eGuides, and more straight into your inbox.

    SHARE

    The quick download:

    CLS measures how much visible content shifts unexpectedly while a page is loading.

    • A CLS score below 0.1 is good; above 0.25 is considered poor.

    • Publishers and content-heavy sites can dramatically improve CLS by standardizing ad sizes and reserving space for dynamic content.

    • The three most common causes of poor CLS values are missing image dimensions, unsized ad slots, and late-loading web fonts.

    • Reserving space for dynamic content and setting explicit width and height on images are the most effective fixes.

    Search visibility is no longer just about keywords and backlinks. To compete for top rankings, your pages also need to feel stable and predictable as they load. Google captures this aspect of experience in its Core Web Vitals, a set of metrics that quantify how users actually perceive your site.

    In this deep dive, we focus on Cumulative Layout Shift (CLS) – the metric for visual stability – and show how to diagnose and reduce layout shifts that frustrate users and hurt your score.

    What is Cumulative Layout Shift?

    Cumulative Layout Shift (CLS) is a score that determines visual stability based on a specific algorithm. We have devoted a section of this article to explain the algorithm used for calculating the CLS score.

    You need to maintain your CLS score below 0.1 to ensure a good user experience. The lower your score, the more stable your page layout. Scores higher than 0.1 mean that you don’t get any search engine ranking benefits from the performance of your page, which allows competing pages with higher performance to rank higher.

    According to Chrome UX report, as of June 1st 2021, 62.2% of websites delivered a CLS score of less than 0.1 for desktop experiences (61.5% for mobile). However, only 40.2% of websites received an overall passing score for all core web vitals. That number drops to 28.3% for mobile experiences. 

    The Importance of Visual Stability

    Imagine you are shopping from your phone and have a few shirts in your cart. You decide you want to update the quantity of the shirts you’ve selected and proceed to navigate to your cart view. Upon selecting edit, the page layout shifts, and your thumb selects “remove item” instead of “+1.” This experience is frustrating for the user caused by visual instability

    While there’s no significant risk to the user in our shopping example, you can imagine extreme scenarios where visual instability could lead to worse outcomes: accidentally submitting an incomplete form, inputting the wrong amounts, checking out before updating your shipping information, and so on. For these reasons, Google considers Visual Stability to be one of the most important metrics for any given web page.

    This is especially true when you consider that most web experiences have been created for desktop viewing, and yet 50% of internet traffic is mobile. That means half of your users could potentially be exposed to unpleasant layout shifts if the page is not designed with mobile visual stability in mind.

    To measure Visual Stability, Google uses the Cumulative Layout Shift (CLS) metric.

    Case Study: The Cumulative Layout Shift Business Impact

    The Telegraph Media Group limited (TMG) operates one of the oldest newspapers in England by the name of the Daily Telegraph founded in 1855. They also operate a news website that attracts an estimated 28 million unique visitors each month.

    TMG’s web administration team was one of the first to recognize the impact of core web vitals on their revenue that relies on selling digital advertising. Their improvement efforts led to the creation of a case study promoted by Google. The improvement in core web vitals impacts their sales in two ways:

    • It improves the ranking of news articles on the Google search results pages due toGoogle increasing the core web vital signal in the search algorithm starting in June of 2021. The improvement in ranking results in more organic traffic to their website that drives advertising sales.
    • It improves the on-page user experience that keeps the visitors longer on their website enjoying the content. As much as selling ads is important, loyal Telegraph readers return for a strong editorial and a polished presentation of the content.

    Ironically, the presence of the same revenue-generating ads caused a layout shift. They resolved the CLS problem by standardizing the ad sizes (height and width) and reserving space for the advert slot that matched the common ad sizes. The images below show the difference before and after.

    Before the improvement:

    After the improvement:

    They also improved how images, headers, and embeds (such as YouTube videos) were loaded on their pages by following instructions similar to those provided later in this article. As a result, their website’s CLS score improved by 250%, driving more visitors to their website who spent more time reading the news and clicking on ads.

    How do you calculate a Cumulative Layout Shift score?

    The scoring algorithm calculates CLS by slicing a page’s loading time into windows of time and selecting the window with the highest CLS score. Let’s start by defining the windowing concept in more detail.

    • Session Window: A window triggered by an unexpected layout shift that closes after 1 second of no additional layout shifts, with a cap of 5 seconds.
    • Layout Shift Scores: A calculation for each layout shift occurring within the 5-second session window.
    • Layout Shift: Whenever an element moves to change its position from one frame to the next. 

    Once you have determined the time windows, use the following metrics for each layout shift that occurred in that session window:

    1. Impact Fraction:  The geometric union of all shifting nodes in the frame as a percentage (Impact Region), divided by the total viewport.
    2. Distance Fraction: Represents the greatest node-shift distance in a frame, divided by the viewport’s width or height (whichever is greater).

    Let’s say an element takes up 60% of the total viewport and then shifts by half of its eight. Here’s what that means:

    • The Impact Region of the viewport is 90% (60% + 30%)
    • The Impact Fraction is 0.9 (90% of 1 view port’s height)
    • The Distance Fraction is 0.3 (30% of view port’s height )

    Now, multiply these scores to get a layout shift score. 

    0.9 x 0.3 = 0.27

    You must score every layout shift in a session window. After you have calculated each layout shift’s score, add the scores together. For simplicity, let’s say our page only had one layout shift occur. The CLS would then be 0.27.

    Note: Even if a separate session window has a sum of 0.20 CLS, it will not impact your CLS score. Google only measures the maximum session window. As a reminder, session windows can last up to 5 seconds and close after 1 second of no additional layout shifts.

    For a deep dive into this topic, check out this article.

    What is considered a good CLS score?

    You should aim for a CLS score below 0.1 to provide the most optimal user experience. Any score above 0.25 is categorized as a bad score and typically means your users are negatively impacted. We explain how to measure a page’s CLS score iIn the next section of this article. You can click on the hyperlink underneath each screenshot to see more information.

    A Low CLS Score (0.001)

    Result of smartblogger.com

    A High CLS Score (0.571)

    Result of ahcustom.com

    How to detect Cumulative Layout Shift issues?

    You can measure CLS in two ways:

    1. Via Synthetic Monitoring:  Uses a combination of agents (for data collection) and synthetic tests (for user activity simulation) to gather performance information, including CLS metrics.
    2. Via Real User Monitoring (RUM): Uses actual, real-user experiences as the data that’s collected. This data reflects the entire lifespan of the page.

    To get you started quickly, simply follow these steps to run a synthetic test:

    1. Go to https://www.webpagetest.org/webvitals 
    2. Input your URL and select a test configuration. After a couple of minutes, your test should be ready for review.
    3. Scroll down to Cumulative Layout Shift to see more detail about your CLS score.
    4. Hover over each image to visualize the layout shifts (the animation triggers upon hover).

    A key differentiation provided by WebPageTest is that you can also view the entire test as a frame-by-frame filmstrip or a video. Simply select “View as Filmstrip” or “View Video” on the hyperlinks presented at the bottom of the screenshot showing the results from the New York Magazine’s homepage.

    The filmstrip shows each frame during the page’s loading and automatically highlights the frames where the core web vital problems appear (click here to see example):

    The video is a timed recording of what a user sees on a mobile phone while the page loads as presented below (click here to see example):

    Advanced Cumulative Layout Shift Measuring

    JavaScript APIs

    The Performance Observer API is one way you can obtain RUM web performance data from real-world users. It looks for performance-related events on a web page and notifies you about the new performance entries recorded in the performance timeline of your browser. By creating a new PerformanceObserver, you can identify a specific event during your website’s visitors’ session. You can programmatically get the information about the sources causing CLS.

    let cls = 0;
    new PerformanceObserver((entryList) => {
      for (const entry of entryList.getEntries()) {
    	// 500 ms input exclusion window
    	if (!entry.hadRecentInput) {
      	cls += entry.value;
      	console.log('Current CLS value:', cls, entry);
    	}
      }
    // the buffered flag enables observer to access entries from before the observer creation
    }).observe({type: 'layout-shift', buffered: true});

    In this example, we have created and configured a PerformanceObserver that watches for ‘layout-shift’ events.

    Web-Vitals Library

    You can use this library to determine the Core Web Vitals score using RUM data.  A more refined analysis can be made for debugging purposes. For instance, you can set the second argument in the getCLS function to true if you want to report each layout shift:

    import {getCLS} from 'web-vitals';
    
    // Logs CLS as the value changes.
     getCLS(console.log, true);

    Top Causes of Cumulative Layout Shift and How to Solve Them

    There are three main causes of CLS. In the following sections, we’ll take a look at each in addition to how to resolve each issue. You can follow along using your WebPageTest results. Review each session or filmstrip’s highlights to determine which kind of issue you are dealing with.

    1. No Dimensions Defined for Media

    Problem

    When height and width dimensions are not specified on media such as images and video, the media content is forced to push any accompanying text down or beyond the viewport. This happens because text loads much faster than media on a web page, and without placeholders provided to guide how the text is laid out, the page must adjust as more content loads.

    A visual explanation of the impact of defining media dimensions (source).

    Example

    To isolate the problem, create a film strip using WebPageTest that automatically highlights the frame with a layout shift in the loading process.For example, see the frame at 14.5 seconds in the screenshot below (highlighted with a dotted yellow line) taken from the main page of the Washington Post website showing a layout shift in the top section of the frame. In this case, the creation of the space required to load the image (seen after 17 seconds) caused the shift. You can click here to see an archived copy of the result shown below since the Washington Post homepage will most certainly change by the time you read this article.

    Solution: Add Size Attributes

    This resolution is fairly simple: simply add width and height attributes to all of your images, like so:

    <img src="example.jpg" width="360" height="180" alt="example">

    2. No Space Allocated for Slow-Loading and Dynamic Content

    Problem

    If space is not properly reserved for elements like ads, embeds, iframes, and dynamically injected content, layout shifting can occur. You can mitigate this by ensuring the container or ancestor elements have dimensions that already provide enough space on first render.

    Example

    WebPageTest is also able to create a video recording of the loading experience from the perspective of a potential end user on the specified device/browser type. To quickly share it, simply save it as a .gif. For example, you can see how the following ads on theverge.com website cause several layout shifts at 1.5s, 4s, 5s, 7.5s, and so on. In this case, the slow-loading content isn’t fully displayed until 17s. You can click here to see an archived copy of the result shown below since the content of the page will have changed by the time you read this article.

    Solution: Reserve Space for Content

    Reserve the space for slow-loading and injected content using placeholders of specified width and height.  Here are a few examples of specifying the adverts dimensions in CSS and JS.

     <div class="ads" style="min-width: 300px; min-height: 250px;"></div> 
    Reserving space (image on the right) avoids shifting of content (source).

    3.  Suboptimal Web Fonts

    Problem

    Web fonts are popular, but when not optimized they can cause layout shifts in two ways:

    1. FOUT (Flash Of Unstyled Text): Occurs when a page displays text using the default fallback font before the desired font style is rendered, causing dimensional re-arrangements due to varying font width and height.
    2. FOIT (Flash Of Invisible Text): Occurs when an ‘invisible’ font is displayed while the web page is waiting for the primary font style to render.

    Example

    Depending on your page layout, web fonts can have a dramatic impact on your CLS score. Taken from bbc.com/news, you can see how just a flash of unstyled text can dramatically impact your score. At 2s into page load, the text’s styling loads, changing how many news cards fit on each row (notice the extra card on the right side of the top row), and affecting the CLS score by a massive 0.489. Remember, a score of 0.1 is what you are aiming for. You can click here to see an archived copy of the result shown below. This archived version helps you see the firm strip given the content of the page will have paged by the time you read this article.

    Solution: Prepare a Text Rendering Strategy

    To avoid font-induced layout shifts, you can define a text rendering strategy using the CSS descriptor font-display. For example, you can set the font-display to optional within an at-rule. If your primary font fails loading in the first 100ms, the text is simply rendered using the fallback font.

    You can also combine font-display: optional with <link rel=”preload”> to preload optional fonts to completely eliminate layout shifts.Headline web font loading causes a layout shift. View test on this archived version of WebPageTest’s film strip since the content on the BBC web page will have changed by the time you read this article.

     Source

    Summing Up

    As you’ve learned, the Cumulative Layout Shift (CLS) metric is a user-centric metric that plays a critical role in your web page’s search rankings. CLS measures the visual stability of a given page, calculated by taking the maximum session window’s total layout shift scores.

    Understanding, debugging, and improving CLS is an excellent step towards targeted page optimization, especially when combined with other user-centric web performance metrics. A good CLS score enhances your user experience, boosts SEO, and increases leads, conversions, and revenue.

    Catch layout shifts before your users do

    Unexpected page shifts push users away and hurt your ranking. LogicMonitor gives you the performance visibility to identify and address CLS issues before they affect your business.

    Get a demo

    FAQs

    What is Cumulative Layout Shift?

    CLS is a Core Web Vitals metric that measures how much a page’s visible content moves unexpectedly while it loads. It is calculated using a combination of how much content shifts and how far it shifts.

    What causes a high CLS score?

    The three most common causes are images and videos without defined dimensions, ads or embeds that load without reserved space, and web fonts that appear after the text is already displayed.

    What is a good CLS score?

    A CLS score of 0.1 or less is considered good by Google. Scores above 0.25 are considered poor and can affect your search rankings and the experience users have on your pages.

    How do I fix a high CLS score?

    Start by adding explicit width and height attributes to all images and video elements. Reserve space for ads and dynamic content so the page does not shift when they load. For fonts, use font-display: optional or preload your fonts to reduce layout shifts caused by late-loading text.

    By Denton Chikura

    Technical Writer

    Denton Chikura is a technical writer and longtime observability advocate focused on helping site reliability engineers and engineering teams discover the tools and capabilities that strengthen internet resilience. He works at the intersection of monitoring, performance, and infrastructure to make complex systems more understandable and usable, bridging the gap between deep technical detail and real‑world operations. His goal is to help teams build faster, detect issues earlier, and recover smarter, ultimately making the internet a better, more reliable place for everyone.

    Disclaimer: The views expressed on this blog are those of the author and do not necessarily reflect the views of LogicMonitor or its affiliates.

    © LogicMonitor 2026 | All rights reserved. | All trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.

    Product

    Platform

    Infrastructure

    Cloud & Multi-Cloud

    Log Management

    Edwin AI

    Enterprise

    Demo

    Pricing

    WebPageTest Pricing

    RUM Monitoring

    IPM Monitoring

    Synthetic Monitoring

    How We Compare

    Datadog

    Dynatrace

    Virtana

    Solarwinds

    PRTG

    ManageEngine

    ScienceLogic

    SiteScope

    BigPanda

    About

    Careers

    Our Partners

    Leadership

    Newsroom

    Security

    AI Governance

    Sustainability

    Legal

    Documentation

    Docs Hub

    Release Notes

    Security

    Support Center

    Resources

    Autonomous IT in 2026

    Resource Library

    LM Academy

    Blog

    Case Studies

    Customer Education

    Connect

    Contact & Locations

    Submit a Ticket

    Events

    LM Community

    Careers


    Product

    Platform

    Infrastructure

    Cloud & Multi-Cloud

    Log Management

    Edwin AI

    Enterprise

    Demo

    Pricing

    WebPageTest Pricing

    RUM Monitoring

    IPM Monitoring

    Synthetic Monitoring


    How We Compare

    Datadog

    Dynatrace

    Virtana

    Zenoss

    Solarwinds

    PRTG

    ManageEngine

    ScienceLogic

    SiteScope

    BigPanda


    About

    Careers

    Our Partners

    Leadership

    Newsroom

    Security

    AI Governance

    Sustainability

    Legal


    Documentation

    Docs Hub

    Release Notes

    Security

    Support Center


    Resources

    Autonomous IT in 2026

    Resource Library

    LM Academy

    Blog

    Case Studies

    Customer Education


    Connect

    Contact & Locations

    Submit a Ticket

    Events

    LM Community

    Careers


    Privacy Policy

    Terms of Use

    Preference Center

    Do Not Sell My Information

    © 2026 LogicMonitor