Closed WebReflection closed 7 years ago
actually, there are better ways to preserve the current behavior, keeping it simple, and delegate to the platform the reverse-order.
http://stackoverflow.com/questions/25695000/how-to-display-a-reverse-ordered-list-in-html
ol {
display: flex;
flex-direction: column-reverse;
}
li {
flex: 0 0 auto;
}
I'll close this for now, there are more important things to do here and on viperHTML 😉
Right now the logic to boost up incremental updates takes care only of pushed nodes.
However, taking Twitter as example, the same logic should be applied for prepended nodes.
The function in charge of finding the difference should not give up if the first item is different and it should check if looping backward there is a chance to find a reversed update prepending.
Example:
I'm pretty sure a good algo will make
hyperHTML
nearly as heavy as 2KB but I feel like this is an important feature to cover all kind of lists updates.Worth trying to sneak in this smarter algo.