| Let's say you visit a webpage like Reddit and want to search for $string. Maybe I am too stupid, but in my opinion it's just not possible anymore. :( Content is dynamically loaded in and out and you have to scroll carefully not to miss a $string when using browser based CTRL-F. That is just ridiculous. For me infinite-scroll is one of the most stupid features of the "modern" web. It just makes the experience worse to crank up some dubious engagement numbers. And to make it clear: I don't want to search for stuff via $string site:reddit.com via some search engine. Often I really want to search for exact $string on a page, but on something like Reddit that does not work anymore. [/rant] EDIT: Thanks for all the answers. And I think I hit a nerve here :) Maybe it makes some frontend developers take a step back and really think if it's really a good idea to implement that "feature". As suggested you can use old.reddit.com in case of Reddit, but for some pages, there just isn't an option and the worst offenders even hijack your CTRL-F and want you to use their own terrible search. |
However, this won't work if the page is using virtualised scrolling (common with React et al. SPA for performance reasons, to avoid huge DOM trees as the page expands). The majority of content that is outside of the visible window will simply be unmounted from the DOM.
I'm not sure what the best-practice for a webapp designer is here? Perhaps intercepting Ctrl+F and displaying a custom search that will do the correct filtering on the back-end and update/retarget the view? Azure DevOps does this but it's still frustrating if your focused element is not within the capture point for the event.