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

error-images

What it does

This skill checks whether a website handles broken or missing images gracefully. It is for developers who want pages that still look tidy when a picture fails.

When to use it

  • ✓When visitors see broken image icons on your site.
  • ✓When a photo from an external source sometimes fails to load.
  • ✓When you build a gallery or product listing that depends on images.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/error-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/error-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

“Can you add a fallback so broken images on my site don't show a broken icon?”

5 new skills a week. 1 minute to read.

How it works

The agent checks for error handling on images and suggests a placeholder or fallback. It can also suggest logging image errors so you notice them.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Handle image loading errors gracefully

Broken image icons look unprofessional and confuse users—graceful fallbacks maintain visual consistency and user trust when images fail to load.

Quick Reference

  • Use onerror to replace broken images with fallbacks
  • Provide meaningful placeholder content, not broken image icons
  • Consider skeleton loaders while images load
  • Log image errors for monitoring and debugging

Check

Check if the website handles broken images gracefully with fallback images or error states.

Fix

Implement fallback images or placeholder content for broken image scenarios.

Explain

Explain how proper error handling for images improves user experience.

Code Review

Review image assets, markup, and delivery configuration related to Handle image loading errors gracefully. 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/error-images

FAQ

How does a fallback image work?

When an image fails, the page swaps in a placeholder, typically with an error handler on the image element.

What is a skeleton loader?

It is a grey placeholder shape shown while content loads, which the skill lists as one option.

Will this fix the missing image file itself?

No. The skill covers how the page responds when an image fails, not why the file is missing.

Details

Original description by the author

Use when reviewing image assets, markup, and CDN or build transforms related to Handle image loading errors gracefully. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.

repo: thedaviddias/Front-End-Checklist

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills