Pages

Saturday, January 11, 2025

Spotify fix scrolling lag issue

TLDR; There is a horrible lag issue with spotify, spotify didn't fix it yet, so basically I profile the app, detect the bug slowing it down, add some code to force hardware acceleration using the translate3d(0,0,0) trick, also add some perfomance hints using willChange. 

before & after:



The performance issue makes using spotify so horrible that I considered switching to Tidal. Spotify knows about this, since many users complained in the forums, but they didn't fix it yet, I love this app and don't want to switch to Tidal, so I take matters in my own hands.

here is a video (i don't delve into the technical details too extensively here, since the video is made for normal spotify users to help them fix the issue):


  • codes:
  • not in the video, but i knew how to pinpoint the issue since on the performance tab, i saw when scrolling it spends most of the time in Layerize.

No comments:

Post a Comment