Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
There was an error while loading. Please reload this page.
The
nextTickpolyfill is supplied by https://github.com/defunctzombie/node-process/blob/master/browser.js which uses timers. See: defunctzombie/node-process#86.Because timers are often throttled when a tab is not active to improve battery life, they only run at 1Hz (once every second). This has a drastic performance impact in those scenarios.
It seems that the author won't change this for the time being, see: webtorrent/webtorrent#1568 (comment)
It would be cool to just map
nextTicktosetImmediate, as we are already providing that polyfill.