5 ms·
The Polymer website uses Polymer and it is slooooow. That's a huge red flag to me. I have nothing but good things to say about React. Try that instead.
by chrismonsanto 12y ago
The Polymer website uses Polymer and it is slooooow. That's a huge red flag to me.
I have nothing but good things to say about React. Try that instead.
- evilduck 12y agoWhen it was brought up 5 days ago here: https://news.ycombinator.com/item?id=7945084 https://news.ycombinator.com/item?id=7945084 there was also lots rendering issues in most every browser except Chrome. I'd stay away from using it in production until they've ironed out the kinks.
- mradmin 12y agoSlow UI or slow loading? Slow loading is due to all the HTML imports generating HTTP requests. This can be optimised by inlining the web-components, using a tool like https://github.com/Polymer/vulcanize https://github.com/Polymer/vulcanize I'm not sure why the polymer website is not optimised like this. [edit] Here's what vulcanize does: http://polymer-twitter.badsyntax.co:8002/build.html http://polymer-twitter.badsyntax.co:8002/build.html (Code here: https://github.com/badsyntax/polymer-twitter https://github.com/badsyntax/polymer-twitter) Concatting styles is a whole different story, conceptually it doesn't fit in with encapsulated compontents.
- chrismonsanto 12y agoFor me, on Firefox 30, I can see the basic structure of the page immediately, then my browser freezes for ~1.5 seconds, and I see the rest. I checked out the front page in FF's devtools, and could only see two uncached network requests, both to youtube.com. So I am assuming that Polymer itself isn't hitting the network. Furthermore AJAX doesn't freeze the browser, so I can only conclude that it's the actual JS that is causing that lag. On Chrome 35 the freeze is for a much smaller duration but I can still feel it. I'm currently on my (fairly beefy) desktop, so I imagine it's even more noticeable on an older laptop or phone. EDIT: indeed, from a cold cache, it's even slower, and wow there are a lot of HTTP requests.
- mradmin 12y agoIt's slow for me also on Chrome 35, but i can't jump to any assumptions on why, without doing the proper debug. For example, the home page is loading a video and adding syntax highlighting to code examples, which can also be slow. Also the UX can be improved using [unresolved] on elements: http://www.polymer-project.org/docs/polymer/styling.html#fouc-prevention http://www.polymer-project.org/docs/polymer/styling.html#fou...
- ahuth 12y agoI also made a gem for rails called Emcee that does inlining and concatenation: http://github.com/ahuth/emcee http://github.com/ahuth/emcee. It also let's you use CoffeeScript or SASS (or anything else that Sprockets recognizes).
- nevir 12y agoIt's snazzy :)
- axelf 12y agoI also had issues with it crashing safari on an ipad
- tkinom 12y agoAgree, Designer tool looks kinda nice. BUT, it is slow in FF30, Safari and failed a lot in IE11. IMO, Big G is trying very hard to push web technologies that tightly couple to Chrome - same as what MS/IE did a few years back trying hard to force ActiveX, Silverlight down the developers' throat. I'm betting < 20% chance Polymer will still be in IO talk 3 years from now. (remember GWT, Dart, Angular?)
- spankalee 12y agoHi, I'm on the Dart team and spoke at IO this year. Remember what? :) You have to remember that Polymer is a library that helps you implement Web Components. The APIs for Web Components are being integrated directly into the browser. Chrome already has them, and Firefox is landing them now. Even Microsoft is interested. This is not another framework. edit: Check out http://jonrimmer.github.io/are-we-componentized-yet/ http://jonrimmer.github.io/are-we-componentized-yet/ for a summary of the progress on the Web Components standards.
- higherpurpose 12y agoPeople keep confusing this it seems. What Google is doing here is NOT like what Microsoft did. Google is merely implement many new HTML5 features ahead of Microsoft (which is usually the most behind in HTML5 support) and others. So it's not that they are "built for Chrome". It's that they are built for "new HTML5 specs" and only Chrome happens to support them right now. Point me to where Silverlight was an HTML spec? Now, things like NaCl on the other hand are a lot more similar to what Microsoft used to do, but there's still a major difference, and that is that what they are building is open source and everyone can do their own implementation of it. You could never do that with ActiveX or Silverlight. Plus, you could also say Firefox is doing the same as Google with asm.js, which nobody else has adopted so far. These things are a little more like that, but at least they are open source. The HTML5 features, though, just happen to be implemented faster by Chrome.
- tkinom 12y ago> "at least they are open source" Kinda of remind me of how "open" android is progressing. More and more "features" are pushing into "google experience" layers - also look at how open is the android TV. BTW, chrome is doing the same on the extension side. I see the pro/con on the "extension move" - reduce the security risk , etc. But it is sure feel like the Jedi master is feeling the power of the dark side - "working within the system" is not as fun as just being the Empire.
- vittore 12y agoTalking about React, there is nice react binding for Kendu.UI library that guys from WingSpan are working on https://github.com/wingspan/wingspan-forms https://github.com/wingspan/wingspan-forms You can see demo here: http://wingspan.github.io/wingspan-forms/examples/form-master-detail/ http://wingspan.github.io/wingspan-forms/examples/form-maste... (more demo links on github page)
- Kiro 12y agoReact seems so complicated in comparison to Angular templates. Am I wrong?
- nailer 12y agoTry ractive. You get simple mustache templates, but the speed of a virtual DOM like React.
- lowboy 12y agoI've done projects in both Angular and React and I find the latter to be much simpler to reason about. Scopes, transclusions and directives are often confusing. React is just nestable Polymer-like components of encapsulated markup and behaviour. A React component at its most basic is just an object that implements a render() method that is responsible for rendering markup. See the React home page for examples http://facebook.github.io/react/index.html http://facebook.github.io/react/index.html. Since React is just a view layer though, you're left to your own devices for everything else. So if you're evaluating it from the perspective of a whole SPA, then it becomes more complicated.
- dustingetz 12y agoPolymer and React are orthogonal, here is a great comment explaining the difference: https://news.ycombinator.com/item?id=7739755 https://news.ycombinator.com/item?id=7739755
- ionelm 12y agoI'm intrigued by your statement. When I read the word "orthogonal" I'm thinking of two key concepts: * No functionality overlap in primitives * Composability of primitives How do Polymer and React as primitives fulfil said properties ? There's certain overlap in functionality. Composability is not guaranteed. Did you mean to convey a different idea by "orthogonal" ?
- deleted 12y ago[deleted]