-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: "onload" event order #8376
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @benjamingr
Thanks, sorry I'm a bit sick (and on my phone and not computer) - note that de-duplication here means that we return |
@benjamingr thanks for pointing this out, should we hold on before merging then? EDIT: I'm gonna revert my deduplication and leave a TODO comment to fix it in the future |
This reverts commit 86c98e6.
I think merging is probably fine it's an improvement I will follow up with another fix |
Deno has a bug where it currently always attaches
.onload
beforeaddEventListener
see this for a web example.The following code:
Logs
[ 2, 1, 3 ]
in deno whereas browsers (and deno with this patch) log[ 1, 2, 3 ]
Note that this can be a relatively risky change compared to the AbortSignal/WebSocket/Worker timing fixes