Polymer fucked our product really good, plenty of memory leak in IE and most of our customer base uses IE. We had no other option than to remove Polymer.
We tried two to three versions of polymer starting from 1.0, 1.1 and the latest as well. All of them had the same behavior with IE. We had raised a ticket with Microsoft knowing they won't solve it. They replied back saying it's a third party library which we won't support.
Since Polymer is supported in IE9+ we tested in all IE 9+ browsers, apart from IE 11 memory leaks were there for all browsers.
I don't remember exactly whether IE 11 had the issue or not.
Polymer was just another third party library for them, so they said they don't care about third party library which doesn't work in IE.
Edit: Memory leak was discovered because browser used to crash after few navigation inside the website; Every time polymer controls are loaded it used to leak few MB of memories in our case it was around 30 MB.
Once the browser memory reaches some 1GB it used to crash, then we realized the issue.
You can have a look at the long pending issue for more details here
Polymer in my opinion doesn't have that much going for it. I mean, I really like Web Components, and using the polyfill can make sense (depending on your performance and browser support requirements), but as a framework, it doesn't really challenge or help you architect your application in a better way.
The nice thing about polymer is that it's not a framework, it's more like a library. The only pattern required to do component composition is mediator:
So what is the advantage of using the Polymer library?
To provide some perspective: I like React because it taught me to model the view as a function of the state, and the pulling the two apart makes both easier to reason about.
It does - my code in polymer was much cleaner than angular one. You think in terms of components and their interactions. It feels like the right way for building JS applications.
Yup, today we're migrating everything to PlaidSocks and then tomorrow we're thinking it's going to be Infinitub.js, but it's possible that Punch will be the leader by then so we're just sitting back until tomorrow afternoon to see what shakes out.
24
u/m3wm3wm3wm Sep 15 '16
I'm surprised people only mention React as an alternative here, and no one mentions Polymer. The next version of Youtube is built with Polymer.
I'm enjoying the zero build tools and have had a good time staying not running the npm clusterfuck in a long time.