最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Web Components vs. Widgets: Is there a difference? - Stack Overflow

programmeradmin4浏览0评论

I recently starting working with Ember.js, and I've been introduced to web ponents. I've used jQuery UI widgets before, and they seem like the same thing. Is there a difference between a web ponent and a widget, or are they more or less the same thing?

I recently starting working with Ember.js, and I've been introduced to web ponents. I've used jQuery UI widgets before, and they seem like the same thing. Is there a difference between a web ponent and a widget, or are they more or less the same thing?

Share Improve this question asked Nov 19, 2013 at 21:30 EmptyArsenalEmptyArsenal 7,4644 gold badges39 silver badges65 bronze badges 1
  • 3 capitalized, w3/TR/ponents-intro it means something specific. in layman's speech they might be the same thing... within ember, it's basically just a name for packaged templates with benefits like api methods. – dandavis Commented Nov 19, 2013 at 21:33
Add a ment  | 

1 Answer 1

Reset to default 8

Web Components is an umbrella term for a group W3 standard technologies posed of: Custom Elements, Shadow DOM, HTMLImports, and HTMLTemplates. These four specs working in concert form Web Components, and afford you all the abilities old school UI libraries like jQuery UI or Ember do, while allowing you to do so in a standard package browsers will natively understand.

One huge benefit, is that when you use Web Components, it makes it far easier for the browser to keep your code/app on the "fast path". The fast path, is the accelerated portions of the browser that are able to run as fast as possible and be optimized by underlying mechanisms like the JS engine's JS-to-native code pilation JIT, and low-level DOM systems that minimize things like the import of assets, UI reflows, and layout recalcs.

Here are two libraries that make development of Web Components even easier: http://x-tags/ & http://www.polymer-project/

发布评论

评论列表(0)

  1. 暂无评论