-
Notifications
You must be signed in to change notification settings - Fork 35
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
Placeholders #260
Comments
(Am I supposed to get a 403 Forbidden at the Chromium issue link?) Why not just use JavaScript for this, like, say, NPR does now? The big reason I see: you don’t get to leverage the browser’s I’ll hopefully note (while fully acknowledging that this is a sort-of-separate and certainly-more-complicated thing) that this seems like a perfect use-case for some kind of diff-based layering. I’ve been fiddling with Laplacian pyramids recently. |
No you're not. I hope it'd get open to the public soon. (No idea why it was closed to begin with, but no permissions to open it myself) |
A ton of people are using JS for that. What we (ideally) want is for the browser to use its srcset info in order to lower a low-res placeholder (the 0.1x image, if you will) instead. Again, not sure what the specifics should be, but I think we should discuss it.
Yup. (to both it being perfect and more complicated :D ) |
I agree with this use-case, and think we should address it. Summarized, it's:
This needs to be an opt-in rather than an automatic behavior from the browser because some use-cases do want the high-quality image immediately; if you're going to draw it into a |
Do we need to wait for (or instigate) resource priorities work to start working on this? This would pair nicely with the measuring- And let me put the cart before the horse and propose that if we end up using a markup token for this, it be named after |
I don't think this is tied to resource priorities. I agree that having it tie into the sizes-based-on-layout functionality would be interesting; integrating it syntactically would probably be a good idea.
|
Hey guys - was anything ever finalised on this? I found myself trying to implement a lowres/LQIP |
@willstocks nothing has been done here (yet) on the spec side of things; there's still no native way to serve a low-quality image placeholder. You can still use |
There's a WHATWG issue for placeholders here: whatwg/html#3631. |
In http://ircbot.responsiveimages.org/bot/log/respimg/2015-03-05#T117041 we discussed adding some way for browsers to load a poor-quality image first, trigger onload, and then lazy-load a higher-res resource.
A similar concept is also being discussed in https://code.google.com/p/chromium/issues/detail?id=464849
I'm not yet sure what's the best form of that should be (opt-in/out, trigger onload for intermediate image, hold window.onload for high-res image, etc), but I think we should further discuss it.
The text was updated successfully, but these errors were encountered: