You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This topic is for discussion of #10673, which is a Stage 1 proposal.
The current explainer uses URL-like module syntax to define a module identifier. The TPAC breakout session had some discussion around initiating a network fetch for the given module name if one hasn't been defined declaratively.
Specifically, this would mean that specifying the following markup:
Is this something that is desired by developers? If so, there are a number of follow-up issues to clarify, but I want to determine fetching in general makes sense with this feature.
The text was updated successfully, but these errors were encountered:
This seems related to my objections in #10673. Ideally you would not be using the module map infrastructure at all, and instead using pure URLs. Then #fragment URLs could reference inline style sheets identified by id="".
In that /foo.css would only be network-loaded once, even if referenced in multiple shadow roots (assuming that is how link rel in a declarative shadow DOM always works?).
The difference would be that under the hood the attribute adoptedstylesheets would become adoptedStyleSheets on the shadow root, rather than a link rel.
What if we assumed that adoptedstylesheets="/foo.css" was instead a reference to a genuine, regular (CSS) module, and that modules in general were extended to also support inline modules, which I take as potentially implied by this comment?
What is the issue with the HTML Standard?
This topic is for discussion of #10673, which is a Stage 1 proposal.
The current explainer uses URL-like module syntax to define a module identifier. The TPAC breakout session had some discussion around initiating a network fetch for the given module name if one hasn't been defined declaratively.
Specifically, this would mean that specifying the following markup:
without an existing definition of
foo.css
in the module graph would:adoptedStyleSheets
in the provided<template>
elementThis would essentially be a markup-equivalent of https://web.dev/articles/css-module-scripts
Is this something that is desired by developers? If so, there are a number of follow-up issues to clarify, but I want to determine fetching in general makes sense with this feature.
The text was updated successfully, but these errors were encountered: