In applications like Google Docs, or Discourse, off-screen content is removed from the DOM to save memory. This means the browser’s native find-in-page functionality can’t find all the page’s content, which forces these applications to intercept the keyboard shortcut for find-in-page and build their own UI around it.
Similarly, large documents like the HTML standard are split into multiple sub-pages to save memory and loading time, but this sacrifices searchability unless they build their own UI.
We could design an API that would allow these applications to provide their own results to the native find-in-page UI, without needing to replace the UI entirely.
- Is this already happening somewhere?
- If not, do folks think it’s worthwhile?