Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Scroll jank from scroll listeners and parallax: how to fix it

PRF-048Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Browsers fire a scroll event many times a second while a visitor scrolls. If your page runs JavaScript on each event, such as moving a background for a parallax effect, measuring element positions, or toggling a sticky header class, that code competes with the browser's own work on the main thread (the single thread that runs your scripts and also paints the page).

Why it costs you leads or sales

Most visitors reach your form, pricing or buy button by scrolling. A page that feels sluggish looks untrustworthy and makes reading harder, especially on mid-range phones. Some visitors leave; others tap buttons that are not where they appear to be. Heavy scroll work can also delay taps, which can hurt Interaction to Next Paint (INP), Google's responsiveness metric.

How scroll jank reaches the conversion
  1. Visitor scrollsScroll events fire many times a second
  2. Scroll handler runsParallax or layout reads block the main thread
  3. Frames droppedPage stutters and taps lag
  4. Form or CTA reachedSome visitors give up before this

Heavy scroll code delays frames, so some visitors never reach or trust the call to action.

A scroll that stutters

The scroll handler holds the main thread, so the page cannot repaint smoothly.

How to check if your site has it

Start by feel: scroll your key landing page on a real mid-range phone and with the desktop browser throttled. Then confirm with tools.

Find the scroll code causing jank
  1. Record a scroll in Chrome DevTools

    Open DevTools, go to the Performance panel, set CPU to 4x slowdown, click Record, scroll the page for a few seconds, then stop. Look for long yellow bars (scripting) and red-marked frames in the Frames row.

  2. Find the handler

    In the flame chart, click a long task and read the call stack. Event: scroll followed by a function name or a library file points to the culprit.

  3. Turn on the FPS meter

    In DevTools, open the Command menu (Ctrl or Cmd + Shift + P), run Show Rendering, and tick Frame Rendering Stats. Watch the frame rate while you scroll.

  4. List scroll listeners

    In the Elements panel, select the window or body and open the Event Listeners tab, or run getEventListeners(window) in the Console, to see scroll handlers and whether they are passive.

  5. Compare with field data

    Check the INP and responsiveness data for the page in the Chrome UX Report or PageSpeed Insights, if your page has enough traffic.

How to fix it

The most reliable fix is to remove the effect. Parallax rarely changes conversions, so if it is decorative, switch it off first and see whether the problem goes away. If you keep it, make it cheap.

Scroll handling before and after

Janky

  • Scroll handler runs on every event
  • Reads layout values then writes styles in the same handler
  • Animates top, left or background-position
  • Several plugins each add their own listener

Smooth

  • Passive listeners, or no listener at all
  • IntersectionObserver or CSS handles position-based effects
  • Only transform and opacity are animated
  • One effect, or none, on the key landing page
Fix by platform
  1. Turn off motion effects

    In page builders such as Elementor, open the section's Advanced tab and set Motion Effects (scrolling effects, parallax) to off. In other builders, look for the equivalent parallax or scroll animation option.

  2. Find the plugin responsible

    Deactivate animation, parallax or sticky-header plugins one at a time on a staging copy and re-record a scroll in DevTools.

  3. Use a theme sticky option

    If a sticky header is the cause, use a theme setting that relies on CSS position: sticky rather than a script.

Passive listener with requestAnimationFramejavascript
let ticking = false;
let lastY = 0;

window.addEventListener('scroll', () => {
  lastY = window.scrollY;
  if (!ticking) {
    requestAnimationFrame(() => {
      document.documentElement.classList.toggle('is-scrolled', lastY > 80);
      ticking = false;
    });
    ticking = true;
  }
}, { passive: true });
IntersectionObserver instead of scroll mathsjavascript
const io = new IntersectionObserver((entries) => {
  entries.forEach((entry) => {
    if (entry.isIntersecting) {
      entry.target.classList.add('is-visible');
      io.unobserve(entry.target);
    }
  });
}, { threshold: 0.2 });

document.querySelectorAll('.reveal').forEach((el) => io.observe(el));
CSS sticky header, no JavaScriptcss
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
Toggle the heavy scroll handlerInteractive
Parallax scroll handler running

Handler on

Leads or data lost

Each scroll event runs layout reads and style writes. Frames are dropped and scrolling stutters on slower phones.

Illustration of cause and effect, not a measurement of your site.

How to confirm it's fixed

Confirmation checks
  • Record a new Performance trace with 4x CPU slowdown and see no long tasks tied to scroll events
  • The FPS meter stays near 60 while scrolling the full page
  • Scroll listeners show as passive in the Event Listeners tab
  • The page scrolls smoothly on a real mid-range phone
  • Sticky headers and reveal animations still work
  • PageSpeed Insights or field data show INP no worse than before

How to prevent it happening again

Prevention habits
  • Ask what a motion effect is for before adding it to a landing page
  • Test every new plugin, theme update or animation on a slow phone or throttled CPU
  • Keep one scroll effect library at most, and avoid stacking plugins
  • Animate only transform and opacity
  • Never read layout values and write styles in the same scroll handler
  • Monitor real-user Core Web Vitals so regressions show up after releases
Frame rate while scrollingExample numbers
Frame rate while scrolling (example)Before (parallax on): 28 frames per second; After (handler removed): 58 frames per second022442858Before (parallax on)After (handler remove…frames per second

Example: illustrative frame rates on a throttled mid-range phone before and after removing a parallax handler. Not real measurements.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs scheduled robot visits through your forms, checkouts and booking buttons, and verifies steps, tracking hits and lead delivery. It does not measure frame rate or scroll smoothness.

The kind of tool that fits is a browser performance profiler such as Chrome DevTools or Lighthouse for lab testing, plus a real-user monitoring or Core Web Vitals field-data tool to see how visitors experience your pages. FunnelGuard is useful alongside them for the separate question of whether your funnel still works end to end after you change scripts or effects.

Questions people ask

Why is my website laggy when I scroll?

The most common cause is JavaScript running on every scroll event, such as parallax effects, sticky header scripts or animation plugins. When that code takes longer than one frame, the browser drops frames and scrolling stutters. Record a scroll in the Chrome DevTools Performance panel to find the script.

Does parallax scrolling hurt performance?

It can. Script-based parallax moves elements on every scroll event, which uses the main thread and can force layout recalculation. CSS-only effects that animate transform are cheaper, and removing decorative parallax is the safest fix.

What is a passive event listener and how do I use it?

A passive listener tells the browser your handler will not call preventDefault(), so scrolling can continue without waiting for your code. Add it with window.addEventListener('scroll', handler, { passive: true }).

How do I replace a scroll listener with IntersectionObserver?

Create an IntersectionObserver that watches the elements you care about and run your code when they enter the viewport. It replaces manual position checks like getBoundingClientRect in a scroll handler and runs far less often.

Can scroll jank affect my Core Web Vitals?

It can contribute. Long scripting tasks triggered by scrolling can delay the browser's response to taps and clicks, which may raise INP. Layout shifts caused by scroll effects can also affect CLS.

How do I find which script is causing scroll jank?

Record a scroll in the DevTools Performance panel with CPU throttling, then click the long tasks and read the call stack for Event: scroll. The function or library file named there is usually the cause.

Does FunnelGuard detect scroll jank?

No. FunnelGuard checks that your funnel steps, tracking hits and lead delivery work. Scroll smoothness needs a browser profiler such as Chrome DevTools or a real-user monitoring tool.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.