progressive-jpeg
它能做什么
这个技能检查 JPEG 图片,并在有帮助的地方将其转换为渐进式编码。它面向希望图片加载时页面感觉更快的网站构建者。
适用场景
- ✓你请智能体改善网站上 JPEG 图片的加载方式的时候。
- ✓图片从上到下慢慢出现,访客长时间只看到空白的时候。
- ✓你在准备 JPEG 备用图片,并希望它们平滑加载的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/progressive-jpeg/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我网站上的 JPEG 照片是从上往下慢慢加载的。请帮我把它们转换为渐进式 JPEG 吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会找出使用基线编码的 JPEG 文件,并以渐进格式重新保存。这样访客会立即看到低质量的图片版本,随着数据增加逐渐变清晰。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Use progressive JPEG encoding
Progressive JPEGs display a low-quality preview immediately rather than loading line-by-line—users see something faster, improving perceived performance even if total load time is similar.
Quick Reference
- Progressive JPEGs show blurry preview immediately, then sharpen
- Better perceived performance than baseline JPEGs that load top-to-bottom
- Similar file size to baseline JPEG (sometimes slightly smaller)
- Less relevant with modern formats (WebP, AVIF) but still useful for fallbacks
Check
Check if JPEG images are saved in progressive format for better perceived performance.
Fix
Convert baseline JPEGs to progressive format for improved loading experience.
Explain
Explain how progressive JPEGs show a low-quality preview that improves perceived performance.
Code Review
Review image assets, markup, and delivery configuration related to Use progressive JPEG encoding. Flag exact files or components where format choice, sizing, or loading behavior violates the rule, and describe how to confirm the fix in DevTools.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/images/progressive-jpeg
常见问题
渐进式编码会让文件变小吗?
这个技能说,文件大小与基线 JPEG 相近,有时还会略小一些。
使用较新的格式时它还有用吗?
这个技能说,对 WebP 和 AVIF 来说它没那么重要,但对 JPEG 备用图片仍然有用。
我怎样才能看到区别?
这个技能建议在浏览器开发者工具中确认结果。
详情
作者的原始描述
Use when reviewing image assets, markup, and CDN or build transforms related to Use progressive JPEG encoding. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.
热度
- GitHub 星标
- 75k
- 排名
- #2985
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。