I cannot tell you how many times I have gone to commerce sites that use infinite scroll - scroll down - click on and look at a product - back button to listing page returns to top of scrolling page making me scroll down again. What a waste of time.
Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
71–80 of 97 posts
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#72Earlier quoted context omitted.
> Perhaps intercepting Ctrl+F Please don't ever do that. I know one site that does this and I hate it.
Discourse [1], popular forum software, does this as well. [1] https://www.discourse.org/
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#73Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#74I see lots of replies suggesting scrolling for a long time and then using CTRL+F. 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? P…
GitHub does this in workflow logs and it makes it impossible to copy/paste logs greater than the number of lines in your view. Then you download the raw logs and every line has a timestamp so you need to write a shell command just to parse out the actual text you wanted to copy.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#75I see lots of replies suggesting scrolling for a long time and then using CTRL+F. 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? P…
> Perhaps intercepting Ctrl+F Please don't ever do that. I know one site that does this and I hate it.
For what it's worth, if you really need to search e.g. "View" to figure out where the View menu is, the OS-native menu option still works.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#76setInterval(function() { window.scrollTo(0, document.body.scrollHeight); }, 2000);
That will scroll continuously, so you can let it run for a while and then do ctrl-F. It might take a while but you can do something else. I've used it successfully many times (usually when I wanted to scrape the DOM for some reason or another, rather than just do a search).
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#77I see lots of replies suggesting scrolling for a long time and then using CTRL+F. 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? P…
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#78Earlier quoted context omitted.
> I'm not sure what the best-practice for a webapp designer is here? Perhaps intercepting Ctrl+F Oh god no, the solution is simple stop reimplementing the browser in the browser.
The result can give a much better UX if done properly. (If done poorly it's just frustrating of course...) Just think of SPAs vs normal backend templated apps. The SPA can be much faster with poor network connection or when the data needed is large but unpredictable. Then the SPA can really shine, if routing is (re-)implemented well enough.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#79Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#80You can paste something like this into your javascript console: setInterval(function() { window.scrollTo(0, document.body.scrollHeight); }, 2000); That will scroll continuously, so you can let it run for a while and then do ctrl-F. It might take a while but you can do something else. I've used it successfully many times (usually when I wanted to scrape the DOM for some reason or another, rather than just do a search)…