loading-indicators
它能做什么
这项技能检查页面在内容或操作加载时是否给出反馈,并在缺少反馈的地方加以补充。适用于希望页面反应灵敏、人人可用的网页制作者。
适用场景
- ✓当你请智能体检查页面加载数据时的表现的时候。
- ✓当用户似乎因为没有任何提示表明操作在进行而重复点击按钮的时候。
- ✓当页面感觉很慢,而你想在改动前确认真正原因的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/loading-indicators/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“用户反映页面加载时看起来像卡住了。请帮我在缺少加载提示的地方添加提示。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会找到没有任何反馈的异步操作,为内容添加骨架占位图,为操作添加转圈动画。它还会添加无障碍属性,让屏幕阅读器知道页面正在忙碌。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Show loading indicators
Loading indicators reassure users that something is happening—without feedback, users may think the page is broken or click repeatedly, degrading experience and causing duplicate actions.
Quick Reference
- Show immediate feedback for all async operations
- Use skeletons for content, spinners for actions
- Include ARIA attributes for screen reader accessibility
- Avoid content jumps when loading completes
Check
Verify that loading states are displayed during async operations with appropriate ARIA attributes for screen readers.
Fix
Implement loading spinners/progress bars with aria-busy, aria-live, and clear visual feedback for ongoing operations.
Explain
Explain how loading indicators improve perceived performance and accessibility by communicating system status to users.
Code Review
Review the routes, assets, and loading behavior that affect Show loading indicators. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/performance/loading-indicators
常见问题
骨架图和转圈有什么区别?
这项技能建议对加载中的内容使用骨架图,对用户触发的操作使用转圈。
加载提示能让页面更快吗?
不能加快加载速度,但能让等待更清楚。这项技能还提醒要先找到真正的瓶颈。
它们如何帮助屏幕阅读器用户?
这项技能使用 aria-busy 和 aria-live 等属性,告知屏幕阅读器内容正在加载。
详情
作者的原始描述
Use when auditing slow page loads, heavy assets, or rendering delays related to Show loading indicators. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.
热度
- GitHub 星标
- 75k
- 排名
- #2928
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。