Rubygems.org: 404 page pegs browser CPU

Created on 24 May 2017  路  5Comments  路  Source: rubygems/rubygems.org

Steps to reproduce:

  1. Look at local CPU graph, hovering near zero
  2. Go to https://rubygems.org/404 (especially in Chrome)
  3. Look at local CPU graph again, note at least one core pegged

Opening https://rubygems.org/images/sea_floor.svg directly has similar (though somewhat less dramatic) results.

Deleting the <style> element which defines the bounce animation drops CPU to zero, as one might expect.

I understand that people aren't generally going to spend a lot of time looking at that page, but I tend to have a lot of windows open and am careless about closing things I don't need -- but still prefer a non-toasty lap. :heart:

cc @nateberkopec / #1468

Most helpful comment

looks at 404 page

cpu fan slowing whirrs

wwhhhhhiIRRRRRRRRRRRRRR

laptop flies away, never to be seen again

Taking a look, once I find my laptop again.

All 5 comments

looks at 404 page

cpu fan slowing whirrs

wwhhhhhiIRRRRRRRRRRRRRR

laptop flies away, never to be seen again

Taking a look, once I find my laptop again.

It's not 100% for me but enough that we should do something about it. Thanks for bringing this up @matthewd

What about to temporarily disable that animation?

Right, one option would be to make the animation ~3 seconds or so, rather than infinite.

I tried some various null transform hacks but none of them really make a dent in the CPU usage.

You guys scared me - I am not clicking on that link above so I will never know what animation is there, until I'll be redirected ... :(

Was this page helpful?
0 / 5 - 0 ratings