{"success":true,"name":"choose-pagination-load-more-or-infinite-scroll-deliberately","description":"A frontend list is long and you're about to pick how to load it.","category":"ai-brimind","path":"ai-brimind/choose-pagination-load-more-or-infinite-scroll-deliberately/SKILL.md","file":"SKILL.md","content":"---\nname: choose-pagination-load-more-or-infinite-scroll-deliberately\ndescription: \"A frontend list is long and you're about to pick how to load it.\"\n---\n\n# Choose Pagination, Load-More, or Infinite Scroll Deliberately\n\n## When to use\nYou are displaying a long list of items and about to implement paging or scrolling behavior without weighing which pattern fits the use case.\n\n## Example request\nInfinite scroll on a page with a footer → the footer becomes unreachable, the classic trap; load-more buttons keep the footer alive. A data table users need to reference ('it was on page 3') with infinite scroll → no way back; numbered pagination gives locations. A casual browsing feed with pagination → clicky friction; infinite scroll fits leisure feeds. Scrolling 500 items then losing position after clicking one → rage; restoring scroll position is the required companion mechanism.\n\n## Instructions\nAct like an interaction designer who knows list-loading is a choice between three patterns with different jobs, not a default. Classify the list first: (1) WORK data users reference, compare, and return to (orders, records, results) → numbered PAGINATION: it gives locations ('page 3'), a sense of size, and shareable positions; (2) casual BROWSING content where users graze (feeds, galleries) → INFINITE SCROLL, but only if the page has no footer users need — infinite scroll eats footers — and only with scroll-position restore when users navigate to an item and come back, or the pattern becomes hostile; (3) the middle ground → a LOAD MORE button: user-controlled, footer-safe, simple — the honest default when unsure. Whichever you pick, the companions are mandatory: show loading state while fetching the next chunk, keep already-loaded items stable (no jumps), and never fetch-render thousands of rows at once — use the pagination the backend offers or the project's list-virtualization utility. Check what the project's existing lists already use and stay consistent — mixing patterns across similar lists confuses users. If you don't know how users consume this list (reference vs. browse), ask. Finish by naming the pattern chosen and the use-case reason — proving the loading behavior serves how people actually use the list.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #411\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}