News for hackers. Stuff that matters.
Re:Windows NT on 600MHz machine opens apps instantly. What h... by RichardCA on Friday June 23, 2023 @06:23PM (#36452979)
I am in no way a front-end person, but my understanding is that it has to do with React and the way it maintains a virtual copy of the DOM.

Having Ctrl-F not work correctly is maddening and I hate it.

Re:Windows NT on 600MHz machine opens apps instantly. What h... by korm on Friday June 23, 2023 @08:18PM (#36454004)
Nothing to do with React, it's a common optimization to improve performance with long lists. You only render the dom elements in the viewport, with some buffer. A common technique to achieve that is called "virtualization" or "windowing".

It's common enough that there were a couple browser proposals to deal with this and would address the Ctrl+F issue. I believe this has been merged into the CSS Containment spec, but at the moment it doesn't make windowing obsolete in every situation.

Re:Windows NT on 600MHz machine opens apps instantly. What h... by ziml77 on Saturday June 24, 2023 @01:15AM (#36455791)
It's not even a technique limited to browsers. When I did Android development years ago it was a technique used in native list controls to reduce the overhead of them. Though in that case, there's no search based on what's been rendered like a web browser has. And of course if you did implement search, you could have that look at the underlying data, so it doesn't matter if it's been rendered.
Re:Windows NT on 600MHz machine opens apps instantly. What h... by pohuing on Saturday June 24, 2023 @06:28AM (#36457351)
But Web browsers already don't render off screen content right? I'm pretty sure I remember opening hundreds of megs of data in Firefox at one point without an issue. Or old reddit with RES has infinite scroll and you can go dozens of pages deep without a hitch. All while not lazily rendering the other pages.