scheduler.yield() smallest possible demo
Instructions:
Record a DevTools perf profile and choose either "One Long Task" or "Many Smaller Tasks" button.
One Long Task
Many Smaller Tasks