Skip to main content
Image optimization and accessibility

Rules

Broken Images

Checks for images returning 404 errors

Figure Captions

Checks for proper use of figure and figcaption elements

Image Alt Text

Validates image alt attributes

Image Dimensions

Checks for width/height attributes (prevents CLS)

Image File Size Too Large

Checks for image files that exceed recommended size limits

Image Filename Quality

Checks for descriptive image filenames

Image Optimization

Checks for image optimization indicators

Inline SVG Size

Checks for large inline SVGs bloating HTML

Lazy Loading

Checks for lazy loading on below-fold images

Modern Image Formats

Checks for modern image formats like WebP or AVIF

Offscreen Image Lazy Loading

Checks if offscreen images use lazy loading

Picture Element Validation

Validates <picture> elements have required <img> fallback

Responsive Image Size

Checks if images are sized appropriately for their display size

Responsive Images

Checks for responsive images with srcset attribute

Disable All Images Rules

squirrel.toml
[rules]
disable = ["images/*"]