3 ms·
This was asked about 8 months ago: https://news.ycombinator.com/item?id=21738571 https://news.ycombinator.com/item?id=21738571 "The site lacks basic optimizat
by blakesterz 6y ago
This was asked about 8 months ago:
https://news.ycombinator.com/item?id=21738571 https://news.ycombinator.com/item?id=21738571
"The site lacks basic optimizations like virtual scrolling to keep the browser from crashing after a few pages of content. There are also entire npm packages being pulled in instead of any tree-shaking, or browser-specific polyfills."
- mschuster91 6y ago> The site lacks basic optimizations like virtual scrolling to keep the browser from crashing after a few pages of content. I fucking hate virtual scrolling. Twitter is particularly bad at this - it breaks search. Twitter's built in search isn't the strongest, so I previously just went with some generic hashtag I knew I used and then used ctrl+f to find the Tweet from my archive. With the "redesign" this use case is totally shot. For Reddit, I can go to "Saved posts", load as far as I reasonably need, ctrl+f and find what I need.
- est31 6y ago> I fucking hate virtual scrolling. Twitter is particularly bad at this - it breaks search. Not just twitter! Discourse has this "feature" too, breaking search as well. They "helpfully" provide overrides to the built-in search function, but it's a) restricted and b) not what I want. It's not what I want because it does NOT search inside the topic only but inside the whole website. It's restricted because I can't search for some word/phrase within a post. My browser also allows me to highlight searched phrases, but that requires the browser search to be triggered in the first place. For a while you could circumvent it by pressing / which on Firefox triggers search, but guess what, Discourse "helpfully" redirected it to their broken search as well. It's a disturbing trend that Discourse is being deployed so widely, replacing older, better working, alternatives.
- ubercow13 6y agoYeah, it seems kind of crazy that a modern browser can't be trusted to just render a few pages of text in boxes without such techniques
- mschuster91 6y ago> Yeah, it seems kind of crazy that a modern browser can't be trusted to just render a few pages of text in boxes without such techniques Well that is because each item is a mess of a dozen or more of div's with a boatload of event listeners, shadow items, leaking handles and other inefficiencies in the JS part...
- decafninja 6y agoThis seems to come up somewhat often as a frontend engineer system design interview question.
- deleted 6y ago[deleted]