Web Component Bytes

225 posts

Web Component Bytes banner
Web Component Bytes

Web Component Bytes

@wcbytes

Web Component tips by @lamplightdev. Writing a short & sweet summary of the week's #webcomponents news https://t.co/PeIQLfuLWJ @[email protected]

UK 参加日 Ağustos 2020
606 フォロー中801 フォロワー
固定されたツイート
Web Component Bytes
Web Component Bytes@wcbytes·
I'll still be looking for Web Component news big and small, and interesting projects that make use of WC so feel free to tweet or DM with anything you've been working on. Thanks!
English
3
0
2
0
Kill yourself Elon
Kill yourself Elon@schizanon·
Sometimes I wonder why I advocate for #WebComponents when the API sucks so hard. You can't access attrs in the constructor, but you can't access the shadowRoot from the connectedCallback. So if you need to use the values of attrs in your shadowRoot you're fucked. This shouldn't be this hard #CustomElements #html #javascript #web
English
2
0
2
178
Web Component Bytes
Web Component Bytes@wcbytes·
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.
English
0
0
8
447
Web Component Bytes
Web Component Bytes@wcbytes·
What's the closest thing to Remix/Next for web components?
English
0
0
2
263
Web Component Bytes
Web Component Bytes@wcbytes·
@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?
English
1
0
2
51
Web Component Bytes
Web Component Bytes@wcbytes·
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
English
5
17
115
0
Web Component Bytes
Web Component Bytes@wcbytes·
@patrickjs Yeah, styling can be an issue, although I think there are discussions around enabling some kind of slot behaviour with light dom
English
1
0
2
44
PatrickJS
PatrickJS@PatrickJS·
@wcbytes The other problem are the styles. If we could get slots without shadow dom then we can use it. (Also safari updates to show loading states)
English
1
0
1
37
Web Component Bytes
Web Component Bytes@wcbytes·
@patrickjs Well Firefox doesn't quite have support yet, and Safari has a higher threshold (~512bytes) before triggering streaming, but it does work after reaching that theshold.
English
1
0
2
60
PatrickJS
PatrickJS@PatrickJS·
@wcbytes Oh yeah I looked into this the problem is that Firefox and safari doesn’t show the loading state and waits for the loaded state
English
2
0
1
93
Web Component Bytes がリツイート
Cory LaViska
Cory LaViska@claviska·
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
English
28
32
209
0
Web Component Bytes
Web Component Bytes@wcbytes·
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.
English
0
0
2
0