-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
A signal for when an image (img) is decoded enough to paint #3271
Comments
I think this needs to be a mode of |
An argument to |
To bikeshed: |
Ah, I read this more as |
Ah, I think there might indeed be two different use cases lurking in that thread:
|
This is already covered by
I guess this is the incomplete case that we're focusing on here. |
@smfr I see, I thought invoking |
Current
Some examples of syntax that would focus on the issue of the promise firing at a different time:
I kind of like the last option , though it is a bit wordy. I could think of a boolean version that is equally clear. |
See the discussion starting at #1920 (comment) for context.
The idea is to extend the
img
element with an event, overloaddecode()
somehow, or introduce a another signal not suggested thus far that indicates when it's ready to be displayed to users. While at the same time not making it a high priority relative to painting and hitting 60 FPS and such.I hope I summarized that correctly.
cc @dbaron @smfr @othermaciej @vmpstr @aghassemi @cramforce @chrishtr
The text was updated successfully, but these errors were encountered: