Re: [WICG/webcomponents] Lazy Custom Element Definitions (#782)

> Another point is that the define API takes an options object. Should those options also be provided lazily? If so, how?


```JS
customElements.lazyDefine('my-element', async () => {
 const { MyElement } =  await import('my-element');
  customElements.define(name, MyElement, ... );
});
```

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

Message ID: <WICG/webcomponents/issues/782/1523751695@github.com>

Received on Wednesday, 26 April 2023 16:53:11 UTC