Closed uasan closed 2 years ago
Hello. The current implementation in Chrome does not support the <link rel=modulepreload> https://bugs.chromium.org/p/chromium/issues/detail?id=1274871
<link rel=modulepreload>
The specification says that you can specify the as attribute
as
Let destination be the current state of the as attribute (a destination), or "script" if it is in no state. https://html.spec.whatwg.org/multipage/links.html#link-type-modulepreload
But as not support and has not valid as value for type json module.
json
Perhaps it makes sense to add support for the type attribute?
type
<link rel="modulepreload" href="app.mjs"> - for ESM module <link rel="modulepreload" href="style.css" type="text/css"> - for assert: { type: 'css' } <link rel="modulepreload" href="data.json" type="application/json"> - for assert: { type: 'json' }
Thanks.
Moved: https://github.com/whatwg/html/issues/7388
Hello. The current implementation in Chrome does not support the
<link rel=modulepreload>
https://bugs.chromium.org/p/chromium/issues/detail?id=1274871The specification says that you can specify the
as
attributeBut
as
not support and has not validas
value for typejson
module.Perhaps it makes sense to add support for the
type
attribute?Thanks.