-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New principle: Some APIs should only be exposed to dedicated workers #404
Conversation
https://github.com/w3ctag/design-principles/issues/325 | ||
https://github.com/w3ctag/design-principles/issues/360 | ||
--> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have a TL:DR; one-line guidance here. https://github.com/w3ctag/process/blob/master/style-guide.md#get-to-the-point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might make sense to focus a bit more on what we don't want (main thread blocking) and then offer a variety of solutions, such as dedicated workers, shared workers, service workers, worklets, and promise-returning APIs.
in the Web Audio API | ||
because use of {{ScriptProcessorNode}} from the main thread | ||
frequently resulted in a poor user experience. [[WebAudio]] | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example suggests worklets are a good alternative, but the text doesn't really go into that.
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
…404) * New principle: Some APIs should only be exposed to dedicated workers * improve line breaking in new example. * smart quotes. link to definition of jank. * Update index.bs Co-authored-by: Anne van Kesteren <annevk@annevk.nl> * Update index.bs Co-authored-by: Anne van Kesteren <annevk@annevk.nl> --------- Co-authored-by: Sangwhan "fish" Moon <sangwhan@iki.fi> Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Fixes #360.
Preview | Diff