-
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
Preload: only allow certain values for the as
attribute
#10212
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with nits. Although I wonder what the deal is with json and whether adding that to the spec was a mistake since nobody seems to be working on implementing it?
This seems like "somebody is working on implementing it", no? |
I wonder if we should leave JSON off until implementers implement that? Just having it as a destination does not mean it works for preload (the whole point of this PR is to make that clear!) so I'm not sure that |
It's implemented and tested, at least in part: web-platform-tests/wpt#41665 |
I beg to differ: https://wpt.fyi/results/preload?label=experimental&label=master&aligned But I do agree having WPT is a good first start so seems the intent is to eventually support this? |
I can't tell. It says the issue is fixed, so I anticipate no more work will happen on it. But, the WPT still doesn't pass. Maybe @nicolo-ribaudo can clarify? |
Removed |
I originally added The use case for JSON is that you might want to pre-download your full JS modules graph (i.e. same use case as If we want to support it, we should also make sure that |
OK, thinking about this again, since JSON is a module-thing, it only makes sense when preloading a module graph ( |
Can we leave it in WPT (it's helpful to know what's NOT supported - and would have saved me writing a test case if I'd thought to look there) but change it from |
Also, |
Gotcha, makes sense. Anyway, all of that is beyond the scope of this patch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spec text LGTM. Let me know when the tests are updated for JSON.
Done (web-platform-tests/wpt#45426) |
Closes #8332
json
value which is new.(See WHATWG Working Mode: Changes for more details.)
/links.html ( diff )
/semantics.html ( diff )