The exact form for this API has not been nailed down yet. Could be something like requestAnimationFrame, or commit() could return a promise that resolves when it is time to render the next frame.
Spec discussion is here:
https://github.com/whatwg/html/issues/2139
Comment 1 by junov@chromium.org
, Dec 20 2016