Re: [csswg-drafts] [css-cascade] Provide an attribute for assigning a <link> to a cascade layer (#5853)

Without this, the only way to import 3rd-party styles from a CDN into a layer would be `@import`, which is generally considered a performance issue. I know that's especially true when the import is in an external CSS file, causing a chain of requests. Is that still an issue when the imports are inline? Do these have different performance implications?

```html
<link rel="stylesheet" href="https://example.com/framework.css">

<style>
  @import url('https://example.com/framework.css');
</style>
```

If so, we might want to revisit the priority of this? It seems like a fairly common use-case.

-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5853#issuecomment-900484502 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 17 August 2021 17:16:14 UTC