Try to reduce dl impact on slow computers (web)
Try to reduce dl impact on slow computers (web)

On slow computers with a fast network, web browsers may no longer respond because webtorrent is downloading chunks too fast.

The main issue is that you cannot stream a torrent video: the web browser does not have time to play the video, it is too busy downloading the video chunks.

On web browser supporting [requestIdleCallback](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback#See_also), we download chunks with a lower priority allowing the web browser to execute other tasks (like playing the video).
joshterrill/webtorrent,webtorrent/webtorrent,feross/webtorrent,joshterrill/webtorrent,webtorrent/webtorrent,jamesliu96/webtorrent,jamesliu96/webtorrent,feross/webtorrent