scheduler.yield() Demo

Instructions:

  1. Choose either "One Long Task" or "Many Smaller Tasks" button.
  2. Immediately after clicking one of those buttons, quickly click the "Accept Cookies" button.
  3. Observe the delay in being notified "Here are your cookies"