critical-images
What it does
This skill checks that the images visitors see first load with high priority. It is for developers who want faster visible loading and better Core Web Vitals scores.
When to use it
- ✓When the largest image on the page loads slowly.
- ✓When a hero image is marked lazy even though it is visible at the top.
- ✓When a page's main picture is not preloaded.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/critical-images/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Make the hero image on my homepage load first, since it is the biggest thing people see.”
5 new skills a week. 1 minute to read.
How it works
The agent adds a high fetch priority to the main above-the-fold images, preloads the hero image in the page head, and removes lazy loading from images visible at the start.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Prioritize loading critical images
The Largest Contentful Paint (LCP) is often an image—prioritizing its load can improve LCP by 20-40%, directly impacting Core Web Vitals and SEO.
Quick Reference
- Use fetchpriority='high' on LCP images
- Preload hero images in document head
- Remove loading='lazy' from above-the-fold images
- Critical images directly impact LCP Core Web Vital
Check
Identify which images are critical for initial render and ensure they load with high priority.
Fix
Add fetchpriority='high' to critical images and use preload for hero images.
Explain
Explain how prioritizing critical images improves Largest Contentful Paint (LCP).
Code Review
Review image assets, markup, and delivery configuration related to Prioritize loading critical images. 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/critical-images
FAQ
What is LCP?
Largest Contentful Paint, a speed measure for when the biggest visible element appears, which is often an image.
Should above-the-fold images be lazy loaded?
No. The skill says to remove lazy loading from them.
How much can this help?
The skill says prioritizing the LCP image can improve LCP by 20 to 40 percent.
Details
Original description by the author
Use when reviewing image assets, markup, and CDN or build transforms related to Prioritize loading critical images. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2789
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.