Re: [WICG/webcomponents] without .html in link rel="import" and href in web component (Issue #971)

@codehangen , IMO yes, it is possible. The `without .html` could and should be taken off the proposal subject. You are asking the `loading web component by link rel="import" and href` 

As stated the extension is not relevant, you could load JS content even if it has .png extension or without extension completely but returned by server with "application/javascript" content type. 

The proposal need to be accompanied by content type for Declarative Custom Element(**DCE**) as html( not sure what content type) or html document(application/html)  with multiple custom elements definitions. 

PS. I am same wonderer in the standards as you are and do not have mush background to advise how to pursue further.

PPS. The ability to load web component via declarative definition by URI is a requirement for [Declarative Web Application](https://docs.google.com/document/d/1snAeYpAGMG9jP0z5tBv2XEe9hsIg84OyvnUYY77MUKM/edit?usp=sharing) stack which I am working on at the moment. The URI could refer as single DCE definition as multiple. It is a straight match to JS es6 module with default export and named ones. The import you proposing has to cover all necessary use cases
* default import
* import by name(s)
* ability to redefine names locally
* hide the variables(custom element definitions) when imported so the internals of imported module would not pollute the namespace of the module where the import used.
* the import maps kind of orthogonal, it is applied to resolve URI

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/971#issuecomment-1299464334
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/971/1299464334@github.com>

Received on Wednesday, 2 November 2022 02:13:06 UTC