Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Don't run HTMLImageElement timer when there is no animation
Before this change, we would wake up on every event loop iteration to drive animations in single-frame images. This was a complete waste of time and caused 100% CPU usage on our main GitHub repo page. With this change, CPU usage is ~1% when idle on the same page. :^)
- Loading branch information