WICG / WICG/webpackage

<script type=webundle> should fire a load (or error) event?

Open
#697 15 comments 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

The main issue is #670.

It's unclear whether <script type=webbundle> should fire a load (or error) event or not.
And if they should be fired, when should <script type=webbundle> fire them?

  • When its inline JSON is successfully parsed?
  • When the bundle specified in source is loaded?
  • Or any other timings?

For references, the other <script type=>-ish elements' behaviors are:

We might want to align the event semantics of <script type=webbundle> with Bundle Preloading so that we can converge them in the future.

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 by reading the main issue, #670, and compare the referenced import maps, speculation rules, and Bundle Preloading behavior. Determine and document when a webbundle script should fire load or error events, including inline JSON parsing and bundle loading, so its semantics can align with related features.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.