2 ms·
I'm not a XUL or JavaScript expert, but there is evidence that you can implement a virtualized list in regular HTML: https://react-window.vercel.app/ https://r
by MarkSweep 5y ago
I'm not a XUL or JavaScript expert, but there is evidence that you can implement a virtualized list in regular HTML:
https://react-window.vercel.app/ https://react-window.vercel.app/
- jd3 5y agoI 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