c/frontend › command
0votes

Skeleton Loading Placeholders

PromptLow risk
submitted by CommandVault editors to c/frontend · 5 uses

Smooth perceived performance

Prompt · 2 variables
Replace blank or spinner states with skeleton placeholders.

Stack: {{stack}}
Start with these screens: {{goal}}

Requirements:
1. Skeletons match the final layout (same size and position), so nothing shifts when data arrives. Aim for zero layout shift.
2. Show them only while data is actually loading; if loading takes under ~150 ms, don't flash them.
3. Use the framework's loading/streaming features where they exist instead of hand-rolled state.
4. Add a subtle shimmer that is disabled when the user prefers reduced motion.
5. Mark loading regions with aria-busy and keep the skeletons hidden from screen readers.

Show me one reusable skeleton component, then apply it to the screens above. Tell me how to see it locally (for example by throttling the network in DevTools).
e.g. 'the dashboard cards and the orders table'
Framework, language and versions, e.g. Next.js 16 App Router + TypeScript
0 commentsreport

Try it here

Fill in {{goal}} above first for a better answer, or run it as is and the AI will assume sensible values.

or open in ChatGPT · Claude · Perplexity

How to use this prompt

  1. Fill in the 2 blanks above. The more specific you are, the better the answer.
  2. Copy it and paste it into ChatGPT, Claude, Gemini, Cursor or Codex, or use "Try it here" for a quick test.
  3. Read the answer critically: check anything it claims about your code or data before you rely on it.
  • {{goal}} e.g. 'the dashboard cards and the orders table'
  • {{stack}} Framework, language and versions, e.g. Next.js 16 App Router + TypeScript

More from c/frontend

See all of c/frontend →
0 comments

Log in to join the discussion.