WICG / WICG/webpackage

Clarify how `<script type=webbundle>` affects speculative HTML parsing.

Open
#747 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

subresource-loading
Dominant language
Go
Stars
1.3k
Forks
125
PR merge metrics
No merged PRs in 30d

Description

We should clarify how <script type=webbundle> affects speculative HTML parsing.

A browser must not fetch a resource from the network speculatively if <script type=webbundle> says the resource should be fetched from the bundle.

Regarding a browser's implementation, the chromium already implements this kind of behaviour in html_preload_scanner, as far as I understand correctly.

Note that this was pointed out here. Much appreciated!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the speculative HTML parsing section linked in the issue and compare its wording with Chromium's html_preload_scanner.cc implementation. Done means the specification clearly states that a resource identified by <script type=webbundle> must not be fetched speculatively from the network when it should come from the bundle.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.