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.
- Visitor scrollsScroll events fire many times a second
- Scroll handler runsParallax or layout reads block the main thread
- Frames droppedPage stutters and taps lag
- 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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
Disable parallax in theme settings
In Online Store > Themes > Customize, check sections with image or banner settings for a parallax or scroll animation option and turn it off. Theme settings vary by theme.
Review theme and app scripts
Remove apps that add scroll-triggered popups or animations, then check theme.liquid and asset files for custom scroll listeners.
Simplify scroll interactions
Open Interactions in the Designer and remove or reduce scroll-into-view and while-scrolling animations on the landing page.
Animate transform and opacity only
Prefer move, scale and fade over animating size or position properties that force layout.
Change the scroll effect
Select the strip or element, open Animations or Scroll Effects, and set it to None or a lighter effect. Parallax backgrounds can be switched to a fixed or still background.
Turn off parallax
In the section or page style settings, switch off parallax or scroll animation options if your template offers them. Options depend on the template version.
Remove custom scroll code
Check Code Injection for third-party scroll scripts and remove ones you do not need.
Check scroll-depth tags
Built-in Scroll Depth triggers are fine, but custom HTML tags that attach their own scroll listeners should be replaced with the built-in trigger or made passive.
Mark listeners passive and throttle work
Pass { passive: true } and move work into requestAnimationFrame. See the snippets below.
Replace position checks with IntersectionObserver
Use it for lazy loading, reveal animations and sticky-state toggles.
Use CSS where possible
Use position: sticky for sticky elements, and CSS scroll-driven animations where browser support suits your audience.
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 });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));.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;
}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
- 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
- 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
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.
Related issues
- PRF-039INP over 200 ms on a CTA or form interactionFix guide
- PRF-040Long tasks over 50 ms block input during loadFix guide
- PRF-041Total Blocking Time high from heavy third-party tagsFix guide
- PRF-049Animations not GPU-composited causing low frame rateFix guide
- PRF-047Memory leak makes long sessions/single page apps slowFix guide
- PRF-042Submit button unresponsive for seconds while JS loads (dead first click)Fix guide