Platform-injected scripts causing severe scroll jank (Reddit pixel + vendor bundle blocking 9s on main thread) #168
rockcandymountaincharlie-arch
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been experiencing severe scroll jank on desktop in my app (Battle Command) on the Player Registry page, which uses @tanstack/react-virtual to virtualize a list of ~130 player cards.
After extensive debugging — trying virtualizer config changes, overscan tuning, refetch interval removal, React.memo comparators — nothing improved scroll performance. I finally ran Chrome DevTools Performance profiler during a scroll session and found the root cause is not in my app code.
Here's what the profiler showed:
Summary (14 second recording):
The rendering and painting costs are normal. The scripting cost is the problem.
Bottom-up breakdown of main thread time by source:
The Reddit pixel analytics script and your vendor UI bundle are running heavy JavaScript continuously on the main thread, which competes directly with scroll rendering and causes frames to freeze for 1,300ms–9,700ms at a time.
This is not something I can fix in my app code. The third-party scripts are loaded by the Base44 platform, not by me.
Could you please investigate:
I'm happy to share the full profiler recording or screenshots if helpful.
Beta Was this translation helpful? Give feedback.
All reactions