-
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
Support json
/style
as modulepreload
destinations
#10233
Comments
Presumably they're already supported if they're deeper in the module graph. Just not as a top-level entry. I guess it makes sense to reuse the cc @domenic @whatwg/modules |
Right, in cases where modulepreload starts fetching the graph.
Yes exactly, extend as to be script-like + json/style
|
@nicolo-ribaudo WDYT? |
This is a good change -- it should be possible to use Currently |
It's sort-of a subset, it also populates the module map and uses |
Yeah sorry, I meant "the possible resource types you can load with modulepreload are a subset of those you can load with preload". |
What is the issue with the HTML Standard?
json/css modules are available in
import
, however themodulepreload
spec only allows script-like destinations (see https://html.spec.whatwg.org/multipage/links.html#link-type-modulepreload:link-type-modulepreload-3).Allowing json/style here would allow preloading them for the purpose of imports.
The text was updated successfully, but these errors were encountered: