Browser & Web Performance · Senior · Question 18 of 75
What does scheduler.postTask(fn, { priority: "background" }) let you do?
- 1Delay
fnuntil the page is hidden - 2Run
fnin a Web Worker - ✓Correct answer: Schedule work with an explicit priority so user-blocking work runs first
Explanation
Priorities are user-blocking, user-visible and background. Tasks can also be aborted with a TaskController.