Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

231
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda