16 ms·
I don't want to sound negative, but how is that any better than using jQuery UI and similar tools? In other words, what are the advantages of web components ove
by annnnd 13y ago
I don't want to sound negative, but how is that any better than using jQuery UI and similar tools? In other words, what are the advantages of web components over traditional JS+HTML+CSS?
- CmonDev 13y ago1) Declarative 2) Someone could _finally_ implement something like <grid> to be used instead of hacky <div>s or old-school <table>s to get a proper grid layout _quickly_ as it should be. Something that you get in WPF/Silverlight for free.
- michaelsbradley 13y agoEncapsulation: the HTML, JS and CSS that comprise a web component are encapsulated as and within said component. See also Google Polymer and its <polymer-element> "sugar" for building web components: http://www.polymer-project.org/polymer.html http://www.polymer-project.org/polymer.html
- csuwldcat 13y agoWe for starters, this entire component package is lighter than some single jQuery UI plugins. It is declarative, something jQuery UI simply cannot do as it is designed. Web Components APIs are landing in browsers, so these code paths will be highly optimized as time goes on - jQuery's plugin code path will not be.