I had update a little bit your code: just add import styles inside template. http://jsbin.com/luyibufu/3/edit
For the Firefox - it's working very fast, like without import styles tag. For the Chrome - you can see browser slowdown. already submitted issue to the chromium. we will see. понедельник, 3 марта 2014 г., 18:07:47 UTC-5 пользователь Eric Bidelman написал: > > Even under the polyfills, 500 elements takes ~200ms for me. Is this what > you see? > > http://jsbin.com/luyibufu/1/edit > > > On Mon, Mar 3, 2014 at 2:29 PM, <[email protected] <javascript:>>wrote: > >> I have a simple element imported to the index.html >> <link rel="import" href="elements/radio.html"> >> >> it just display radio button. >> >> then try to create dynamically XXX elements >> >> document.addEventListener('polymer-ready', function(){ >> var doc = document.createDocumentFragment(), el = null; >> for(var i =100; i-- > 0;){ >> el = new RadioElement(); >> doc.appendChild(el); >> } >> document.body.appendChild(doc); >> }); >> >> the most time-cost line is: doc.appendChild(el); >> >> for 100 elements it take 30ms >> for 300 - 26s >> for 500 - more than 1 min. >> >> Maybe I had made mistake somewhere. I stacked. >> >> Follow Polymer on Google+: plus.google.com/107187849809354688692 >> --- >> You received this message because you are subscribed to the Google Groups >> "Polymer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/polymer-dev/5bfdb37d-f005-423d-9dbb-ed5244f44d34%40googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/5089a947-005f-4339-a36c-7d213ae1764b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
