-
Notifications
You must be signed in to change notification settings - Fork 56
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
imagesrcset and imagesizes attributes on link rel=preload #329
Comments
FYI, there is now an Intent to Ship: imagesrcset and imagesizes attributes on <link> on blink-dev. |
@hober @dbaron I can't find any mention of |
@eeeps, I was simply wondering if a separate |
Here is some previous conversation on why |
The TL;DR is that the syntax is vastly different, which I think is reason enough to use a new attribute for. Overloading one attribute with two syntaxes usage of which depends on other attributes seems rather complex. It might be worth having some notes that point this out in the |
Thanks for raising this issue! In general, we're pretty happy with how this is looking given the existing patterns for preloading that already exist in the platform. At the same time, we have a related set of larger concerns with preloading of resources containing other resources (e.g., style sheets, ES/WASM modules), as well as the disparate ways and techniques for pre-loading of various content. This is not something we expect you to address in your work, but something we'd like to see harmonized at some point in the future. Again, we appreciate having the chance to review, and we hope you consider us in the future! |
こんにちはTAG!
I'm requesting a TAG review of:
imagesrcset
andimagesizes
attributes on <link> whatwg/html#4048 and imagesrcset and imagesizes mutations are appropriate times to obtain the resource w3c/preload#134Further details (optional):
You should also know that...
Two issues have been raised in the past discussions:
<picture>
use-case: It's not always easy or possible to create a set of<link rel=preload>
s whose selection logic is equivalent to a<picture>
element. This was discussed at TPAC 2018, and a summary is here.Preloads that depend on viewport dimensions would need to be delayed until the end of the
<head>
tag, where the viewport is locked. (This is not an issue specific to imagesrcset/imagesizes, since preload can havemedia
attribute.) That means mostimagesrcset
s cannot be preloaded just by preprocessing HTTP headers. We plan to discuss the viewport issue separately from this one.We'd prefer the TAG provide feedback as (please select one):
cc: @yoavweiss
The text was updated successfully, but these errors were encountered: