Polymer / polymer

Our original Web Component library.
https://polymer-library.polymer-project.org/
BSD 3-Clause "New" or "Revised" License
22.05k stars 2.01k forks source link

dom-repeat initial-count throttling fails when pushing new items #5631

Closed kevinpschaaf closed 4 years ago

kevinpschaaf commented 4 years ago

Description

When adding new items to an already-rendered <dom-repeat> with initial-count, chunking is re-initialized. This has two effects: First, any already rendered items past the initial count are removed, then because the already-rendered items "render" in a very short time, the average time per item is very low, causing the remainder of the list to be rendered in one shot, thus chunking is defeated for newly added items.

Live Demo

https://glitch.com/edit/#!/kaput-hollyhock-o6tozsgx4a?path=index.html:9:0

Expected Results

Actual Results

Versions