Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

223
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda