Skip to content

Commit 8388c68

Browse files
kenchriscynthia
andauthored
New principle: Where possible APIs should be available in DedicatedWorker (#356)
* New principle: Where possible APIs should be made available in DedicatedWorker * Remove description of dedicated worker Co-authored-by: Sangwhan "fish" Moon <[email protected]>
1 parent 51c4da3 commit 8388c68

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

index.bs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,6 +2536,22 @@ offers guidance that should be considered in the development of new features, no
25362536
* [[#feature-detect]]
25372537
* Polyfill development should be encouraged
25382538

2539+
<h3 id="consider-dedicatedworker-support">Where possible APIs should be made available in DedicatedWorker</h3>
2540+
2541+
When exposing a feature, please consider whether it makes sense to expose the feature
2542+
to DedicatedWorker as well.
2543+
2544+
Many features could work out of the box on a DedicatedWorker and not enabling the feature
2545+
there could limit the ability for users to run their code in a non blocking manner.
2546+
2547+
Certain challenges can exist when trying to enable a feature on DedicatedWorker,
2548+
especially if the feature requires user input by asking for permission,
2549+
or showing a picker or selector.
2550+
Even though this might discourage spec authors to support workers,
2551+
we still recommend designing the feature with DedicatedWorker support in mind,
2552+
in order to not add assumptions that will later make it unnecessarily hard to expose
2553+
these APIs to DedicatedWorker.
2554+
25392555
<h3 id="new-data-formats">New Data Formats</h3>
25402556

25412557
Always define a corresponding MIME type and extend existing APIs to support this type

0 commit comments

Comments
 (0)