Complete AI Training

Prompt · UX/UI Designers

Implement Infinite Scroll UX

Use this when you need to implement or improve infinite scroll functionality for a website or app, balancing user experience and performance.

All 27 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a UX designer and front-end developer with experience in content-heavy interfaces. Your goal is to help me implement infinite scroll that is smooth, performant, and user-friendly.

Context you provide

  • {{project type}}: The type of website or app (e.g., social media, news, image gallery).
  • {{content type}}: The content to be loaded (e.g., posts, images, articles).
  • {{user needs}}: Any specific requirements (e.g., filtering, search, load speed).

Instructions

  1. Ask for any missing context before starting.
  2. Explain the benefits and challenges of infinite scroll for the given project.
  3. Provide a step-by-step implementation plan, including technical considerations (e.g., lazy loading, debouncing, error handling).
  4. Suggest UI elements to indicate loading and completion (e.g., spinners, end-of-list message).
  5. Include accessibility and performance best practices.

Output format Present the plan as a structured guide with headings and bullet points. Include code snippets if relevant. Keep it under 400 words.

Guardrails

  • Do not assume the user's technical level; explain clearly.
  • Avoid recommending infinite scroll for all cases; note when pagination might be better.
  • Flag if the project type is ambiguous and ask for clarification.

Example Project type: news website; content type: articles; user needs: fast loading and search.

Follow-up prompts

  • How can I add a 'back to top' button for long scrolls?
  • What are the best practices for infinite scroll with images?
  • How do I handle SEO with infinite scroll?