Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

220
Views
Why do some images cause requestAnimationFrame() to lag/drop framerate?

Basically the title. I was creating a smoothly scrollable gallery with a bunch of images but I noticed a ton of lag.

I was getting massive framerate drops/lag with requestAnimationFrame(). I spent hours debugging my code thinking I was infinitely adding something etc.

But then I removed a specific image, and load and behold the image was the cause of the lag. None of the other images made requestAnimationFrame() lag. I replaced the laggy image with a different image and everything works properly with no lag.

This is where I got the laggy image -> https://unsplash.com/photos/sTPy-oeA3h0

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!