Skip to content
Skillpedia
Websites & UI (frontend)75k · #2789

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.md

Copy 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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/critical-images/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2789
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills