Skip to content
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

HtmlImageElement and Element set_onload event misfiring #3126

Open
ghost opened this issue Oct 25, 2022 · 0 comments
Open

HtmlImageElement and Element set_onload event misfiring #3126

ghost opened this issue Oct 25, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 25, 2022

I have events that need to fire when the image is loaded into an image element. I have found that the set_onload and related events like set_onloadeddata always fire before the image has actually loaded. This happens when using an Element or using an HtmlImageElement. In JavaScript, these functions on images reliably fire when the image has loaded completely. There is no other way that I know of to reliably determine if an image has fully loaded or not.

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

No branches or pull requests

0 participants