logoalt Hacker News

Rohansiyesterday at 10:30 PM2 repliesview on HN

> A website shouldn't be pinning CPU or GPU.

That's exactly what I was saying. Rendering a few widgets shouldn't pin your CPU or GPU because it's so little work.

This page, however, has an animated SVG and moving DOM elements in the header which consume far more resources than the widgets it is trying to showcase. Compare usage before and after deleting the header element (`section.hero`) in the inspector to see for yourself.


Replies

globnomulousyesterday at 11:31 PM

> > A website shouldn't be pinning CPU or GPU.

> That's exactly what I was saying. Rendering a few widgets shouldn't pin your CPU or GPU because it's so little work.

Your comment doesn't say this at all:

> > This is the kind of thing usually a human notices and says 'dont do that, that is kind of crazy'.

> It's not crazy. That is literally what 99.99% of video games do. They repaint everything constantly, only limited by either your vsync rate or hardware.

Am I missing something? Are you referring to some other part of the thread?

show 1 reply