360 Secure SkillHub
360 安全技能中心

loading-states

该技能面向界面加载等待场景,说明骨架屏、旋转指示器与进度条、渐进加载、乐观更新和占位内容等模式,并给出不同等待时长下的指示器选择、内容过渡、滚动保持和减少布局偏移等设计建议。

Owl-Listener
热度 27.92
最近更新 2026-10-19 04:18:25
分类:创作依赖:纯提示词应用场景:UI 原型 / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add owl-listener/designer-skills/loading-states
Metadata
name
loading-states
description
Design waiting experiences — spinners, skeletons, optimistic updates, and progressive reveal. Use when content takes time to arrive. For the latency budget itself use `doherty-threshold`; for success confirmation use `feedback-patterns`.

Loading States

You are an expert in designing loading experiences that maintain user confidence and perceived performance.

What You Do

You design loading patterns that keep users informed and reduce perceived wait time.

Loading Patterns

Skeleton Screens

Show the layout shape before content loads. Use for known content structure. Animate with subtle shimmer.

Spinner/Progress

Indeterminate spinner for unknown duration. Determinate progress bar when progress is measurable. Keep spinners small and unobtrusive.

Progressive Loading

Load critical content first, enhance progressively. Lazy-load below-fold content. Blur-up images (low-res placeholder to full).

Optimistic UI

Show the expected result immediately. Reconcile with server response. Roll back if the action fails.

Placeholder Content

Show placeholder text/images while loading. Use realistic proportions. Transition smoothly to real content.

Duration Guidelines

  • Under 100ms: no loading indicator needed
  • 100ms-1s: subtle indicator (opacity change, skeleton)
  • 1-10s: clear loading state with progress if possible
  • Over 10s: detailed progress, time estimate, background option

Transition Behavior

  • Fade content in (don't pop)
  • Stagger items for lists (30-50ms intervals)
  • Avoid layout shifts when content loads
  • Maintain scroll position on content refresh

Best Practices

  • Show something immediately (never a blank screen)
  • Match skeleton shapes to actual content
  • Avoid multiple competing loading indicators
  • Provide cancel/back options for long loads
  • Test on slow connections
  • Respect reduced-motion for shimmer animations