O'Reilly logo

Developing Web Components by Jason Strimpel, Jarrod Overson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Introducing Polymer

There are a number of caveats to the use of web components as they stand today, but there are lots of people from lots of companies doing their best to help get you started as quickly as possible. Polymer is one such project that has gained traction quickly and has proven itself to be invaluable in the web component revolution. Polymer is a BSD-licensed suite of libraries that enable you to be productive with web components immediately.

To help speed the adoption of future web technology, Polymer’s authors have created shims for all related aspects of web components and tangential technologies. These shims are entirely usable outside of Polymer and are accepted as standard shims by companies like Mozilla and Microsoft, who use them with their own web component frameworks.

Considering that it is such a bleeding-edge technology, the Polymer group has done excellent work easing the transition to web component adoption. Polymer (outside of the Polymer elements) consists of two distinct layers of code. In this respect it is similar to jQuery, which is made up of jQuery itself and Sizzle. Sizzle is the independent selector engine that normalizes DOM selection for browsers that don’t support getQuerySelector and similar methods. Most people aren’t even aware of this abstraction because ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required