- From: S.A.N <notifications@github.com>
- Date: Wed, 26 Apr 2023 09:53:06 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 26 April 2023 16:53:11 UTC
> 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