Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
11–20 of 97 posts
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#12You'd have the same problem with pagination, you'd need to Ctrl+f on each page. Solution? Use the website's search form.
(I know -- pagination gives you a URL to a specific page of results. Who cares? When was the last time you deep-linked into a specific index page? Doing so is probably a bad idea, since when new content gets added, the contents of a specific index pagination will change.)
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#13Go to Inspect element and do control + F to search for the string.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#14You'd have the same problem with pagination, you'd need to Ctrl+f on each page. Solution? Use the website's search form.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#15The naive way is to scroll down a ridiculous amount and then do a simple ctrl-F. It would be nice if infinite-scroll sites provided their own search function that searched through all potential content for that page. (And then probably provide those search results on an infinite-scroll page, requiring another search function to search through those search results. It's infinite scroll all the way down.)
Then you want to do some math and realize how amazing visual spreadsheets are.
What I mean is, there's no perfect solution and it all depends on what you're trying to achieve.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#16You'd have the same problem with pagination, you'd need to Ctrl+f on each page. Solution? Use the website's search form.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#171. Click somewhere on the page so the scrolling works 2. Hold down Ctrl + End until a desired amount of pages loads 3. Ctrl + F to find $string
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#18You'd have the same problem with pagination, you'd need to Ctrl+f on each page. Solution? Use the website's search form.
I agree with this. I feel like infinite scroll gets a bad rap. Pagination is no better. There are some sites and use cases where infinite scroll is a huge usability improvement. (I know -- pagination gives you a URL to a specific page of results. Who cares? When was the last time you deep-linked into a specific index page? Doing so is probably a bad idea, since when new content gets added, the contents of a specific…
unless you paginate in chronological order rather than reverse chronological. but no one does.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#19However, 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.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#20You'd have the same problem with pagination, you'd need to Ctrl+f on each page. Solution? Use the website's search form.
I agree with this. I feel like infinite scroll gets a bad rap. Pagination is no better. There are some sites and use cases where infinite scroll is a huge usability improvement. (I know -- pagination gives you a URL to a specific page of results. Who cares? When was the last time you deep-linked into a specific index page? Doing so is probably a bad idea, since when new content gets added, the contents of a specific…