{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-error-images-f74bd93a08c3","title":"Handle Image Loading Errors Gracefully","summary":"Replace broken images with fallbacks using the onerror attribute, provide meaningful placeholder content, and implement skeleton loaders to maintain user experience and visual consistency during image loading failures.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-error-images-f74bd93a08c3","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-error-images-f74bd93a08c3","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-error-images-f74bd93a08c3.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-error-images-f74bd93a08c3\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure the onerror attribute is correctly implemented with valid fallback image URLs. Prepare placeholder content that matches the context of the missing image. The first deliverable is a working fallback image or placeholder content that appears when the primary image fails to load.","instructions":"---\nname: error-images\ndescription: \"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.\"\nmetadata:\n  category: images\n  priority: low\n  difficulty: beginner\n  estimatedTime: \"15\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/images\/error-images\n---\n\n# Handle image loading errors gracefully\n\nBroken image icons look unprofessional and confuse users\u2014graceful fallbacks maintain visual consistency and user trust when images fail to load.\n\n## Quick Reference\n\n- Use onerror to replace broken images with fallbacks\n- Provide meaningful placeholder content, not broken image icons\n- Consider skeleton loaders while images load\n- Log image errors for monitoring and debugging\n\n## Check\n\nCheck if the website handles broken images gracefully with fallback images or error states.\n\n## Fix\n\nImplement fallback images or placeholder content for broken image scenarios.\n\n## Explain\n\nExplain how proper error handling for images improves user experience.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/images\/error-images\n","use_cases":["Replace broken images with fallbacks using onerror attribute","Provide meaningful placeholder content instead of broken image icons","Implement skeleton loaders for better user experience during image loading"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/error-images\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:02:06.000000Z","updated_at":"2026-11-23T04:55:08.000000Z","seo_title":"Handle image loading errors gracefully","seo_description":"Ensure images load correctly and gracefully handle errors to maintain user experience and visual consistency.","seo_keywords":["handle image errors","fallback images for broken images","image loading error handling"]}}