Eliminate mobile scroll freeze without sacrificing design

When a website feels slow on a phone, it isn't always because of the browser. Sometimes the page is making the viewer wait on purpose, moving too many things at once, or changing its own height mid-scroll. Here's what a mobile scroll test turned up, what changed to make it feel smoother, and testing needs a real phone to prove a freeze is gone.

The scroll freeze

It was a familiar scenario. Simulated mobile tests showing a web page scrolling smoothly, and frame intervals staying steady. Yet in testing on an Android phone, the main heading took too long to show up, display cards arrived out of sync, scrolling near the chat panel was stuck, and scrolling up felt heavy.

To a visitor, all of those feel like the same problem - the page has a problem. Under the hood though, they occur for a couple of different reasons - shifting page heights, and animations staying active longer than needed. Fixing the issue meant looking at every part of how the page behaved, without an obvious suspect to target.

Waiting on the design creates artificial delays

A common cause of a page feeling slow is making the visitor wait for an animation to complete before they can continue scrolling.

In the test case, the main heading should have appeared immediately, yet it was hidden from view until the page finished rendering, triggering a typewriter animation. The animation started 1.80 seconds after load and didn't finish until 3.77 seconds.

Changing the flow so the first letter appeared right away, starting the animation when in view, and reducing the character animation typing speed from 65 ms to 40 ms brought the time down to 2.97 seconds to 2.99 seconds in local tests. Anyone using reduced-motion settings or a browser without scripts still saw the full heading, while normal animated playback still relied on scripts after the first character.

Timeline comparing the original heading reveal, completed at 3.77 seconds, with the revised reveal, completed at 2.97–2.99 seconds.
Illustrative comparison of the original and revised heading reveal, using local production measurements.

Mobile scrolling fixes & improvements

Several smaller animations and layout rules were reducing performance and increasing visual clutter on mobile screens:

  • Staggered card delays: A stack of display cards waited an extra 140 ms and 280 ms before appearing. Removing the delay on mobile and triggering a short fade within 96px of the viewport accelerated loading.

  • Chat panel spin animation & background glows: A 360 degree spin animation over 2.80 seconds, bundled with blurred background colour gradients created competing movement. Replacing the spin with a 500 ms fade (that cancels immediately on click), and dropping blur filters calmed the interface on phones while keeping desktop animations intact.

  • Shifting address bar heights: Using 100dvh caused the chat panel and page height to jump by 80px whenever the phone's address bar expanded or retracted. Changing it to 100svh kept the layout steady during scroll.

  • Leftover animation states & hidden scroll traps: Completed animation entrances kept holding transform states, offscreen typing kept running, and an overhanging decorative element created a hidden 422px scroll box. Clearing finished animation states, stopping offscreen typing, and switching outer boundaries to overflow: clip eliminated the background busywork.

Website performance after the fixes

Now it was time to test and measure the results. Testing ran on a local production build in headless Chrome with Android touch emulation (390 × 844 viewport, 4× CPU slowdown, 120 ms added latency, caching off). Each pass ran 10 touch scrolls down and 10 back up across as an initial test, followed by a final test.

MeasurementLocal baselineUpdated local runs
Downward main-thread task time881 ms739–765 ms
Upward main-thread task time507 ms363–400 ms
Upward style calculation time109 ms34–37 ms

Not everything improved. Downward layout time went from 47 ms to 53–66 ms. Frame intervals stayed the same. Neither test version recorded a scroll task over 50 ms. Because these updates hadn't been deployed yet, a real phone test was required to see how the graphics and toolbar movement behaved.

Smooth scrolling on real phones

Once those updates went live, testing on an actual Android device confirmed improvement. The heading appeared immediately, scrolling past the chat panel stayed responsive without stalling, and the layout held steady as the address bar moved.

Good metrics results don't automatically mean a page feels effortless in someone's hand. Real mobile smoothness comes down to when text shows up, how much motion gets in the way, and whether the page shifts layout shape while you scroll. Cutting artificial waits and trimming leftover effects gave the browser less work, and live testing proved the problems were solved.