Sorry about the inconvenience. I will try to make a codepen in the future for other questions. After I did a proper clean up it got better but still had some lags, and I tried to debug using chrome devtool performance recorded and found out it took a ton of time to paint images. Turns out I was using avif images and I thought it is boosting performance but it's not. Avif is smaller but takes longer time for the browser to decode. Changed all imgs to webp and it fixed it. Appreciate the help!