Forwarded from ASafaeirad
Today I Learned:
Scheduler.postTask: Adds a task to the scheduler as a callback, optionally specifying a priority, delay, and/or a signal for aborting the task.
Scheduler.yield:
Yields control of the main thread back to the browser, returning a promise that resolves to continue execution where it left off.
Read more on MDN
#mdn #webapi
Scheduler.postTask: Adds a task to the scheduler as a callback, optionally specifying a priority, delay, and/or a signal for aborting the task.
Scheduler.yield:
Yields control of the main thread back to the browser, returning a promise that resolves to continue execution where it left off.
Read more on MDN
#mdn #webapi
MDN Web Docs
Scheduler - Web APIs | MDN
The Scheduler interface of the Prioritized Task Scheduling API provides methods for scheduling prioritized tasks.
Forwarded from ASafaeirad
GitHub
[templates] A declarative JavaScript templating API · Issue #1069 · WICG/webcomponents
Related to many template, template instantiation, and DOM parts discussions (but especially #777, #682, and #704) I wonder if we should add a JavaScript-based templating API? I think JS-based templ...