Skip to main content

implement-progressive-image-loading

Implement progressive image loading with responsive sources, reserved layout, meaningful placeholders, priority, lazy loading, accessibility, and failure handling. Use when images delay rendering, waste bandwidth, shift layout, or fail on constrained networks.

Informações da origem

Repositório
protosphinx/sphinxstack
Última atividade na origem
29 de julho de 2026 às 13:55
Idioma detectado do SKILL.md
inglês
Estrelas
3
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Explorador de arquivos
2 arquivos

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
implement-progressive-image-loading
category
web
description
Implement progressive image loading with responsive sources, reserved layout, meaningful placeholders, priority, lazy loading, accessibility, and failure handling. Use when images delay rendering, waste bandwidth, shift layout, or fail on constrained networks.
# implement-progressive-image-loading Load the right image at the right priority without hiding essential content. ## When to use - Use for editorial, product, gallery, dashboard, and user-generated images. - Do not lazy-load the primary above-the-fold image or replace meaningful alternative text with file names. ## Procedure 1. Inventory image roles, intrinsic dimensions, display sizes, formats, crop rules, density, themes, and content priority. 2. Generate responsive variants with explicit width and height, controlled quality, supported modern formats, and a reliable fallback. 3. Configure `srcset` and `sizes` from actual layout breakpoints and verify browser selection. 4. Reserve aspect-ratio space to prevent layout shift and use a neutral, nonmisleading placeholder. 5. Prioritize the likely largest-content image; lazy-load only below-the-fold images with appropriate distance. 6. Preserve useful alternative text, captions, links, zoom behavior, and high-contrast or reduced-data needs. 7. Handle decode, network, missing asset, and unsupported format failure without infinite retry. 8. Measure transferred bytes, selection, loading, layout shift, and visual quality across devices and networks. ## Done - An image-delivery map records role, dimensions, variants, formats, sizes, priority, lazy policy, alternative text, and fallback - Device, density, breakpoint, slow-network, cache, failure, accessibility, byte, and layout-shift tests verify delivery
Ver no GitHub