Ref T12762. As the user scroll, automatically add the first 5 pages of results to the document. After 5 pages, show the normal footer, etc., and a link to view all results in the Feed application. (Since we don't have design for this link yet, it's just a button at the top for now.)
This implementation covers:
- Updating the URI as the user scrolls so it's always correct. The URI always shows what the user sees, and any anchors will work correctly.
- Spatially-accurate scrollbar. Even if the content hasn't AJAXed in yet, we pre-compute the size of the content so the scrollbar is accurate. This lets users navigate to the bottom right away if they want, and avoid the scrollbar "jumping" as they load more content.
- Very fast. I measured AJAXing in content at an average of 0ms.
Room for improvement:
- This implementation isn't perfect, ad has a very small (about 30ms on my machine) server-side cost.