DavidDarnes, (edited ) to random
@DavidDarnes@mastodon.design avatar

Do #WebComponents work?
Ask Adobe, Amazon, Apple, AXA, Blizzard, Dell, EA, Ford Motors, General Electric, General Motors, GitHub, GitLab, Google, IBM, ING, Microsoft, NASA, Netlify, Reddit, Red Hat, Salesforce, Siemens, Stripe, Telekom, Ubisoft, Visa, Volkwagen, Vonage, YouTube…

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Looking for people in the #WebComponents community that don't look like they'd fit into that Guys at Wimbledon meme

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

State of the Browser hosted by @webstandards in September is shaping up really nicely. The speakers and their talks sound super interesting.

Also, I'll be speaking there about how and why I've been building my open source #WebComponents:
https://2024.stateofthebrowser.com

nhoizey, to random French
@nhoizey@mamot.fr avatar

““Web components” considered harmful” by @mayank

🔗 https://www.mayank.co/blog/web-components-considered-harmful

> This is a branding problem as much as it is an education problem. Neither the HTML standard nor the DOM standard mentions the term “web components” anywhere. And yet it’s present everywhere in documentation and learning material.

#WebComponents

⚓️ https://nicolas-hoizey.com/links/2024/05/29/web-components-considered-harmful/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar
DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Would anyone like to test out a new Web Component I’ve been working on? It’s for enhancing code blocks on web pages

#WebComponents

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

New Web Component! <contrast-details>

A Web Component for revealing the contrast ratio and level of two colours set using CSS Custom Properties.

Here's the origin story: https://zeroheight.com/blog/color-contrast-with-web-components/

DavidDarnes,
@DavidDarnes@mastodon.design avatar

I also have a more technical article showing how the <contrast-details> Web Component works on my own blog:
https://darn.es/contrast-details-web-component/

nolan, to random
@nolan@toot.cafe avatar

Good news for #webcomponents: Chromium fixed a perf bug for repeated stylesheets in shadow DOM: https://issues.chromium.org/issues/341327461

nolan,
@nolan@toot.cafe avatar

This is interesting to me because it makes it much more viable to build a polyfill for the "open-stylable" proposal: https://github.com/WICG/webcomponents/issues/909

Basically, if you want to have (say) a bootstrap.css which is referenced inside multiple shadow roots, previously you'd run into a gnarly perf cliff (I measured ~160x perf degradation just for 100 shadow roots). This is now fixed!

nolan,
@nolan@toot.cafe avatar

I'll also point out that this is why it's important to test in multiple browsers. A lot of people will run some perf experiment in Chrome, find it's slow, and conclude "OK, I guess the web is just slow at this."

But if you test Safari and Firefox and find they're fast, then congrats! You have a perf bug you can file on Chrome. I filed it and it got fixed 2 weeks later.

categulario, to vuejs Spanish
@categulario@mstdn.mx avatar

Hagan sus apuestas, ¿podré hacer una transición suave y por partes entre #vuejs 2.5 y #webcomponents ?

averíguelo en el próximo capítulo de #ArqueologíaDeSoftware

categulario,
@categulario@mstdn.mx avatar

update: ¡sí se puede! la prueba preliminar es que puedo ir convirtiendo componentes pequeños uno a uno. Ya probé los atributos y ahora siguen los eventos.

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Incase you were wondering:

  • HTMLElement is still the only class you can extend (because Safari)
  • <slot> only works within Shadow DOM

macdonst,
@macdonst@mastodon.online avatar

@DavidDarnes I'd love your feedback on our Light DOM baseclass that emulates slotting.

Repo: https://github.com/enhance-dev/enhance-custom-element
Demo: https://codepen.io/macdonst/pen/MWLjpqK

DavidDarnes,
@DavidDarnes@mastodon.design avatar

@macdonst I’ve bookmarked this to look at tomorrow!

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Very clear pattern forming in a few of my , creating a <template> element outside of the component code itself for reduced repetition and performance. I'm effectively polyfilling for Declarative Shadow DOMs inability to be defined once for many instances. Though I guess I'm also polyfillnig for a lack of “Declarative Light DOM" too 🤔

DavidDarnes,
@DavidDarnes@mastodon.design avatar
nhoizey, to random French
@nhoizey@mamot.fr avatar

““Web components” considered harmful” by @mayank

🔗 https://www.mayank.co/blog/web-components-considered-harmful

> This is a branding problem as much as it is an education problem. Neither the HTML standard nor the DOM standard mentions the term “web components” anywhere. And yet it’s present everywhere in documentation and learning material.

#WebComponents

⚓️ https://nicolas-hoizey.com/links/2024/05/29/web-components-considered-harmful/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar
slightlyoff, to random
@slightlyoff@toot.cafe avatar

One of the teams I've been working with to climb the performance management maturity ladder is...Edge!?!

We build a lot of the browser out of web "stuff" these days (think bookmarks, history, downloads, settings, new-tab-page, etc.), and moving away from React to a modern Web Components + HTML-first architecture has had a huge benefit for users, particularly folks on low-end hardware:

https://blogs.windows.com/msedgedev/2024/05/28/an-even-faster-microsoft-edge/

#webcomponents #webperf #usetheplatform #sorrynotsorry

slightlyoff,
@slightlyoff@toot.cafe avatar

This is building on the same open source, FAST-based design system ("Fluent Web Components v3"):

https://github.com/microsoft/fluentui/tree/master/packages/web-components

But the framework isn't what makes the difference; actually looking and caring about the performance is what has enabled this work to deliver 40-75% wins.

josh, to microsoft
@josh@vickerson.me avatar

Parts of #Microsoft #Edge get up to 76% faster by dropping #React in favor of Web Components.

React's days may finally be coming to an end 🤞

https://blogs.windows.com/msedgedev/2024/05/28/an-even-faster-microsoft-edge/
————
#WebDev #WebComponents

tanepiper,
@tanepiper@tane.codes avatar

@josh @tbroyer Can they tell the MSTeams team?

tbroyer,
@tbroyer@piaille.fr avatar

@josh Well, it's not just react vs web components.

They also rearchitected their code; and as a side effect of moving away from react, they can have code optimized for the most recent Edge when react needs to support many more browser engines and versions (something you definitely want for most web apps).

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • tacticalgear
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • provamag3
  • ethstaker
  • GTA5RPClips
  • modclub
  • tester
  • Leos
  • osvaldo12
  • cisconetworking
  • everett
  • cubers
  • normalnudes
  • anitta
  • megavids
  • lostlight
  • All magazines