Book a call

Why does my Shopify page jump around while it loads?

Updated

The page jumps because something loads late and pushes the rest down: an image without a set size, an app widget, a banner added by a script, or a font that swaps in. Google measures this as Cumulative Layout Shift (CLS) and calls 0.1 or less good.

The browser can only keep space for things it knows about early. Shopify's image_tag filter adds a width and height to images by default, so theme images are often fine. The trouble tends to come from app blocks such as review stars, upsell boxes and announcement bars, which arrive after the page is drawn with no space kept for them.

Shifts that happen just after a shopper taps, like a menu opening, don't count against you. Shifts nobody asked for do, and they cause wrong taps when a button moves at the last moment.

Check it yourself

  1. 1

    In Shopify admin, go to Analytics, then Reports, and search for cumulative. Break the report down by page type to see which templates jump.

  2. 2

    Run PageSpeed Insights on Mobile for one of those pages and open the item on layout shift culprits, which names the elements that moved.

  3. 3

    Open the page on your phone on mobile data and watch what appears late. Note each block that pushes content down.

  4. 4

    For app blocks, look in the app's settings for a fixed height or placeholder, or move the block lower on the page in the theme editor.

  5. 5

    For fonts, pick a system font or a fallback close in size in Online Store, then Edit theme, then Theme settings, then Typography.

  6. 6

    For images or videos added in custom code, give them a width and height, or an aspect ratio in CSS, so their space is kept.

When to ask for help

If the shift comes from theme code or from an app that injects content with a script, ask for help. Keeping space for it needs a code change, tested on a copy of the theme.

Book a call

Pick a time that suits you. The calendar only shows slots we're actually free, and you get an invite straight away.

Booking runs on Google Calendar. Open it in a new tab