<script type=webundle> should fire a load (or error) event?
Nobody has claimed this yet.
- 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
sourceis loaded? - Or any other timings?
For references, the other <script type=>-ish elements' behaviors are:
-
Neither
<script type=importmaps>nor<script type=speculationrules>fires aloadevent for an inline rule. -
Bundle Preloading doesn't mention when to fire a
loadevent yet?
I think it is non-trivial because it fetches a bundle many times in its life time.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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