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
Include

Only show posts containing:

Exclude

Hide posts containing:

Time range
-
Minimum likes
Replying to @killyourselfelo
"you can't access the shadowRoot from the connectedCallback" why not?
1
60
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
4
422
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.
8
448
What's the closest thing to Remix/Next for web components?
2
264
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?
1
2
51
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
1
2
44
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.
2
9
3
26
2,695
Great news! If Shoelace so far has been @claviska working on it as a side project, imagine what it will be like with his full time attention! 🚀 👟🚀
Time to talk about the future of Shoelace. It's been more than two years since the beta release of Shoelace 2.0, which was the first version of the project to ship Web Components… 👇 cont'd
7
Web Component Bytes retweeted
Time to talk about the future of Shoelace. It's been more than two years since the beta release of Shoelace 2.0, which was the first version of the project to ship Web Components… 👇 cont'd
28
31
12
206
👀
Hey.. so I found a way to author Declarative ShadowDOM just once for a given element and then reuse that DSD any number of times without having to rewrite it, without any build tools, and without any JavaScript.
1
Replying to @rauschma
Here's an example of (streaming) DSD with and without the polyfill - it's tiny and works well xitter.cf/wcbytes/status/1541546…
I've been playing with streaming Declarative Shadow DOM recently and it enables some pretty unique behaviour - e.g. enamel.pages.dev/ - a completely JS free, backend agnostic way to deliver your page shell instantly and progressively load in slotted content as it's received
1
3
Stating the obvious maybe, but the tendency for some discussions concerning contrasting opinions on Web Dev Twitter to devolve into arguments, sometimes personal, is very off putting for a lot of people, whether or not you're personally involved.
2
Lots of interesting food for thought here on component based architecture. To paraphrase, when all you have is a hammer everything looks like a nail. Looking forward to seeing ideas in this space breaking out of the current JS centric framework approach!
Where Web Components Went Wrong (And How We Can Turn It Around) space.matthewphillips.info/p…
7
Web Component Bytes retweeted
Where Web Components Went Wrong (And How We Can Turn It Around) space.matthewphillips.info/p…
12
15
4
103
HTML as the single source of truth?
1
5
Replying to @dereko
The body content and the subsequent 3 sections are artificially delayed on the server to demonstrate that you can instantly render the page shell and then render the rest of the content as it becomes available
4
Replying to @antumbral
Ah yeah I see, thanks. I'll look at adding some PE content for that case
1