Post AUt3cFQ3VCd7RDQ5w0 by tbroyer@piaille.fr
 (DIR) More posts by tbroyer@piaille.fr
 (DIR) Post #AUszOzGPrCLpkeKg40 by vanilla@social.spicyweb.dev
       2023-04-21T19:08:06Z
       
       0 likes, 0 repeats
       
       Literally any JavaScript code you ship to the browser which is responsible for "wire up these tags to these functions/objects" is wasted bandwidth & energy because **that's what the #WebComponents are for!**Web Component = #HTML element you get to write yourself. It's pretty awesome. #WebDev
       
 (DIR) Post #AUt3cFQ3VCd7RDQ5w0 by tbroyer@piaille.fr
       2023-04-21T19:55:21Z
       
       0 likes, 0 repeats
       
       @vanilla Agree, except web component definitions are "JavaScript code you ship to the browser which is responsible for "wire up these tags to these functions/objects"".Agree this is how you should do that wiring though.
       
 (DIR) Post #AUt6VCmhCSC96MLL60 by vanilla@social.spicyweb.dev
       2023-04-21T20:27:43Z
       
       0 likes, 0 repeats
       
       @tbroyer Well there's no DOM walking/observing/coordinating code necessary…just a single `customElements.define` per tag type
       
 (DIR) Post #AUt7xvaoITxq8P2m12 by tanepiper@tane.codes
       2023-04-21T20:44:05Z
       
       0 likes, 0 repeats
       
       @vanilla @techytacos Yeshttps://tane.codes/@tanepiper/110237833740640073
       
 (DIR) Post #AUt9QTpShVQONZ4kGu by tbroyer@piaille.fr
       2023-04-21T21:00:25Z
       
       0 likes, 0 repeats
       
       @vanilla Ah yes, if we're *only* talking about this, then totally agree: any other approach should be regarded as "legacy" nowadays (👋 Bootstrap, Materialize et al.)
       
 (DIR) Post #AUtgikETkTHyxB5stk by sysop408@sfba.social
       2023-04-22T03:13:26Z
       
       0 likes, 0 repeats
       
       @vanilla I’ve been making websites since NCSA Mosaic. It’s crazy that I finally realize exactly what a Web component is from this post. 😬
       
 (DIR) Post #AUyqHjgHf5Hkkwev68 by vanilla@social.spicyweb.dev
       2023-04-24T14:54:13Z
       
       0 likes, 0 repeats
       
       @lispi314 it's a one-liner to associate your own custom code with mounting on a particular custom tag wherever it might show up, so that's what we're referring to