Skip to content

Commit

Permalink
fixup! Switch to <script>-based API (issue WICG#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatoito committed Sep 15, 2021
1 parent 4c6b89e commit 57f1f5f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions explainers/subresource-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Note that this syntax is still tentative.
Developers will write

```html
<script type="webbundle"/>
<script type="webbundle">
{
source: "https://example.com/dir/subresources.wbn",
resources: ["https://example.com/dir/a.js", "https://example.com/dir/b.js", "https://example.com/dir/c.png"]
Expand Down Expand Up @@ -209,8 +209,7 @@ of the resource, not the URL of the bundle. For example, given this CSP header:
Content-Security-Policy: script-src https://example.com/script/
```

In the following, the first `<script>` will be loaded, but the second
`<script>` will be blocked:
In the following, `a.js` will be loaded, but `b.js` will be blocked:

```
<script type="webbundle">
Expand Down Expand Up @@ -293,6 +292,9 @@ for the motivation. Note that some of the following alternate designs
were proposed at the era of `<link>`-based API. This explainer doesn't
rewrite them with `<script>`-based API yet.

Note that Chromium's experimental implementation currently supports
only `<link>`-based API as of M95.

### Resource Bundles

A [resource bundle] is the same effort, with a particular scope. A
Expand Down

0 comments on commit 57f1f5f

Please sign in to comment.