---
includeMockServer: true
title: "Infinite Scroll"
description: Load content when you scroll to bottom
icon: "icon-[mdi--arrow-expand-down]"
---
## Basic usage
On the client, put a placeholder row at the end of your table.
```html
| Loading more... |
```
- [`hx-get`](/reference/attributes/hx-get) requests `/contacts?page=2`.
- [`hx-swap`](/reference/attributes/hx-swap)=[`"outerHTML"`](/reference/attributes/hx-swap#outerhtml) sets the strategy to replace the target.
- [`hx-trigger`](/reference/attributes/hx-trigger)=[`"revealed"`](/reference/attributes/hx-trigger#revealed) fires when the element scrolls into view. Use [`intersect`](/reference/attributes/hx-trigger#intersect) [`once`](/reference/attributes/hx-trigger#once) instead if your container has `overflow-y: scroll`.
On the server, respond with the next rows plus a fresh placeholder pointing to `?page=3`:
```html
| Agent Smith | agent10@smith.org |
| Agent Smith | agent11@smith.org |
| Agent Smith | agent12@smith.org |
| Loading more... |
```
Because [`outerHTML`](/reference/attributes/hx-swap#outerhtml) replaces the old placeholder, the new one takes its place, creating a self-extending chain.