
Web Component tips by @lamplightdev. Writing a short & sweet summary of the week's #webcomponents news https://xitter.cf/t.co/PeIQLfuLWJ @lamplightdev@mastodon.social
UK
Joined August 2020
- Tweets225
- Following605
- Followers794
- Likes401
Replying to @killyourselfelo
Seems to work? codepen.io/lamplightdev/pen/…
Replying to @killyourselfelo
"you can't access the shadowRoot from the connectedCallback" why not?
Very much looking forward to playing with this!
Almost there 😄 SWTL will be able to SSR custom elements. The customElementRenderer is pluggable, so it supports @buildWithLit , but could probably support @enhance_dev `CustomElement`s as well, or other custom element renderers
I think this is great news. The core components will remain free and open source, but there's now a business model that will ensure the project gets the investment it needs and deserves to continue to be developed and maintained into the future! Happy to be a backer.
This quoted post is unavailable.
Replying to @PatrickJS
I suppose you could do something similar with a server side web component - but is the attraction of RSC that this would also work as a client side component too?
Replying to @PatrickJS
Yeah, styling can be an issue, although I think there are discussions around enabling some kind of slot behaviour with light dom
Did you know you can stream HTML out of order without any JavaScript at all?
A put a little blog post together explaining how: lamplightdev.com/blog/2024/0…
See a demo: ooo.lamplightdev.workers.dev…
Supported in Chrome and Safari, and in Firefox in a month or two.


