Comment Comment by astoilkov For the past 4 years, I've been working on a library that does exactly this — https://github.com/astoilkov/main-thread-scheduling.It works in all browsers and it breaks long tasks. Sometimes it's even more powerful than scheduler.yield().HN post: https://news.ycombinator.com/item?id=38864791. parent astoilkov 1 year ago
It works in all browsers and it breaks long tasks. Sometimes it's even more powerful than scheduler.yield().
HN post: https://news.ycombinator.com/item?id=38864791.