fippo / rtcstats

MIT License
128 stars 41 forks source link

use requestIdleCallback instead of setTimeout #64

Closed fippo closed 5 years ago

fippo commented 7 years ago

because its awesome and we don't need high priority (in the backend) https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback

might still require a setTimeout to schedule a new idle callback in the future but...

juandebravo commented 7 years ago

I didn't know about this feature, thanks for the tip! 👍

fippo commented 5 years ago

not a priority really so closing.