Skip to content

Conversation

@CompuIves
Copy link
Member

Possibly fixes #4683

With this change we manually dispatch the load event to the window when execution of user code has finished. This should help with code that has window.addEventListener('load'), in almost all cases this event won't be triggered normally because we first need to transpile the code.

This solution is far from perfect, because with this change the load event is dispatched twice, and if there's code in <script> tags they will get the event twice...

@lbogdan
Copy link
Contributor

lbogdan commented Sep 4, 2020

Build for latest commit 711804f is at https://pr4832.build.csb.dev/s/new.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 4, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@github-actions
Copy link

github-actions bot commented Dec 4, 2020

This PR has automatically been marked stale because there has been no activity in a while. Please leave a comment if the issue has not been resolved, or if it is not stale for any other reason. After 2 weeks, this issue will automatically be closed, unless a comment is made or the stale label is removed.

@github-actions github-actions bot added the stale label Dec 4, 2020
@github-actions
Copy link

This PR has been automatically closed because there wasn't any activity after the previous notice or the stale label wasn't removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

onload event handler not firing

3 participants