I 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.
Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
61–70 of 97 posts
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#62I 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…
2. Alternative: same but with web debugging proxy like Fiddler or Charles.
Yep. For JS-heavy pages with virtual scrolling (i.e. removing from DOM stuff that is out of viewport) there's no better solution.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#63For reddit specifically, the answer seems to be to use "old.reddit.com" instead of "www.reddit.com". The is no general solution. Infinite scroll style web apps are implementing their own content view, in essence a web browser inside a web browser. It will never behave as users expect.
I presume this is the corresponding Chrome extension: https://chrome.google.com/webstore/detail/old-reddit-redirec...
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#64Go to Inspect element and do control + F to search for the string.
This is no different than scrolling down and ctrl+F. Infinite scroll doesn't load content until you scroll down.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#65Earlier 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?
#66Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#67Other problems: - Scroll, scroll, scroll, and then click a link. Now click back. You have lost your place. - How can anyone link to a section far down? - Impossible to read or use anything in the footer. I suppose if you install infinite scrolling, you remove the footer. But I have heard a story where they forgot.
Re: Ask HN: How do you search for $string if a webpage “supports” infinite scroll?
#68I 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…
> 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.
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?
#69I 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…
> 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.