by brundolf · 5y ago · 0 comments
Downsides of infinite scroll:
- Requires JavaScript (adds complexity, especially when site doesn't already require dynamic rendering)
- Loose/unpredictable UX behavior can be discomforting (loads when you don't want it to load, doesn't load when you want it to, scroll bar suddenly changes size, etc)
- Reloading the page/clicking the back button loses your position
- Monotonically-growing DOM slows things down eventually, unless you start de-rendering previous "pages", which adds even more complexity and unpredictability (Ctrl+F doesn't behave as expected, for example)
I think it can make sense for some things, but not for a simple and stable website like HN. Even for something like Twitter I wish they hadn't added it.
Is this what Twitter is doing? Is this why Ctrl+F almost never works there?
There's a more general principle here where, once you start trying to override core browser behaviors, you usually end up with a never-ending rabbit hole of corner cases that you now have to cover yourself that used to be handled for free (and probably with better performance, and stability, and accessibility...), and an ensuing complexity-explosion in your code. I won't say it's never worth it, but it's something you should really really put a lot of thought into before you go down that road. All other options should be exhausted first.
So if you want them, you're going to have to implement your own dropdown from scratch. Complete with keeping things from going off-screen, overflow behavior, type-in behavior, some sort of mobile-friendly UX for touch devices, etc etc. Oh, and screen readers/accessibility browsers will almost certainly not understand it.
So then the question you have to ask yourself (or your PM) is: how badly do we really need those tooltips? Sometimes the answer is, "our product will be a complete failure without those dropdown-tooltips". Oftentimes, it isn't.
Some say it's a dark pattern, but I don't think so. Wouldn't it feel silly if Twitter made you paginate through your feed?