w3c/requestidlecallback

Name: requestidlecallback

Owner: World Wide Web Consortium

Description: Cooperative Scheduling of Background Tasks

Created: 2015-07-15 21:50:12.0

Updated: 2017-12-17 01:41:51.0

Pushed: 2017-10-30 10:02:17.0

Homepage: https://w3c.github.io/requestidlecallback/

Size: 158

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Cooperative Scheduling of Background Tasks

Also known as requestIdleCallback.

This document defines an API that web page authors can use to cooperatively schedule background tasks such that they do not introduce delays to other high priority tasks that share the same event loop, such as input processing, animations and frame compositing. The user agent is in a better position to determine when background tasks can be run without introducing user-perceptible delays or jank in animations and input response, based on its knowledge of currently scheduled tasks, vsync deadlines, user-interaction and so on. Using this API should therefore result in more appropriate scheduling of background tasks during times when the browser would otherwise be idle.

Latest draft: https://w3c.github.io/requestidlecallback/

See also Web performance README


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.