4 ms·
I recently wrote a somewhat performant react-virtualized[0] list for a project at work, though it's definitely a bit trickier in plain HTML/JS. As far as the X
by jd3 5y ago
I recently wrote a somewhat performant react-virtualized[0] list for a project at work, though it's definitely a bit trickier in plain HTML/JS.
As far as the XUL virtualized tree goes, a couple of Mozilla engineers wrote some examples using plain html/javascript + DOM node manipulation[1]. While promising, I can't imagine that this implementation could ever be as fast as the compiled C++ one[2].
[0]: https://github.com/bvaughn/react-virtualized https://github.com/bvaughn/react-virtualized
[1]: http://benbucksch.github.io/trex/fastlist-test.html http://benbucksch.github.io/trex/fastlist-test.html
[2]: https://searchfox.org/mozilla-central/source/layout/xul/tree/ https://searchfox.org/mozilla-central/source/layout/xul/tree...
https://news.ycombinator.com/item?id=14158170 https://news.ycombinator.com/item?id=14158170