- From: Renoir Boulanger <notifications@github.com>
- Date: Sun, 23 Apr 2023 18:05:23 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 24 April 2023 01:05:28 UTC
I did implement a minimal version of lazy loading as an ESM module loaded over http.
```html
<html>
<head>
<script type="module">
import { registerCustomElement as lazyLoaderLoad } from 'https://renoirb.com/esm-modules/value-boolean-element.mjs'
lazyLoaderLoad(
window,
'my-value-boolean'
/* ^^^^^^^^^^^^^
Which, most probably may have more than allowing to tell a local name
*/
)
</script>
</head>
<body>
<my-value-boolean></my-value-boolean>
</body>
</html>
```
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/978#issuecomment-1519232516
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/978/1519232516@github.com>
Received on Monday, 24 April 2023 01:05:28 UTC