Open
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:
-
Neither
<script type=importmaps>
nor<script type=speculationrules>
fires aload
event for an inline rule. -
Bundle Preloading doesn't mention when to fire a
load
event 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.