offscreen-lazy
Was er macht
Dieser Skill prüft die Bild-Tags einer Seite und ergänzt verzögertes Laden für Bilder, die außerhalb des Bildschirms liegen, während das Hauptbild oben sofort lädt. Er ist für Webentwickler gedacht, die schnellere erste Ladevorgänge wollen.
Wann du ihn nutzt
- ✓Wenn du den Agenten bittest, eine Seite zu beschleunigen, die viele Bilder gleichzeitig lädt.
- ✓Wenn eine lange Seite viele Fotos herunterlädt, die Besucher vielleicht nie sehen.
- ✓Wenn du Bild-Markup prüfst und sicherstellen willst, dass das Hero-Bild nicht versehentlich verzögert lädt.
Link zum Skill
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/offscreen-lazy/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Meine lange Produktseite lädt zu viele Bilder auf einmal. Kannst du verzögertes Laden für die Bilder unterhalb des sichtbaren Bereichs ergänzen?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent prüft jedes Bild-Tag und ergänzt das native Attribut für verzögertes Laden bei allen Bildern unterhalb des ersten Bildschirms. Das Hauptbild oben bleibt unverzögert, und er schlägt Breiten- und Höhenangaben vor, um Layoutsprünge zu vermeiden.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Lazy load offscreen images
Lazy loading eliminates unnecessary image downloads on initial page load. A page with 20 images below the fold may transfer several megabytes of data that users who don't scroll will never see. Deferring these downloads reduces Time to Interactive, improves LCP for above-fold content, and saves bandwidth—particularly impactful for users on metered mobile connections.
Quick Reference
- Add
loading="lazy"to all<img>elements below the fold - Never lazy-load the LCP image (hero, first product image)—use
fetchpriority="high"instead - Always pair
loading="lazy"withwidthandheightattributes to prevent CLS - Native
loading="lazy"has universal support in all modern browsers—no JavaScript polyfill needed - If fold position is unclear from the snippet, do not invent a lazy-loading defect
Check
Scan all <img> elements in this codebase. Identify: 1) Any <img> elements below the fold (not in the first viewport) that are missing loading="lazy". 2) Any <img> elements marked loading="lazy" that appear to be above the fold (hero images, first product images, logos in headers). 3) Any <img> with loading="eager" below the fold. Report the above-fold images that should NOT have lazy loading separately from below-fold images that should have it. If fold position cannot be inferred from the snippet, do not report missing lazy loading as a defect.
Fix
For images that should use lazy loading: 1) Add loading="lazy" to all <img> elements that appear below the fold. 2) Remove loading="lazy" from any hero, logo, or first-visible image—these should load immediately. 3) Ensure all lazy-loaded images have explicit width and height attributes to prevent CLS. 4) For the LCP image specifically, add fetchpriority="high" and remove loading="lazy". Show the corrected HTML for each modified image.
Explain
Explain how native browser lazy loading works. The loading="lazy" attribute tells the browser to defer image download until the image is within a browser-defined distance from the viewport (typically 1250px on a slow connection). This reduces the data transferred on initial load, lowers Time to Interactive, and saves bandwidth for users who never scroll to those images. Browser support is universal in modern browsers. The critical caveat: never lazy-load the LCP image—it must load as fast as possible.
Code Review
Review image assets, markup, and delivery configuration related to Lazy load offscreen 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/offscreen-lazy
Häufige Fragen
Warum sollte das Hero-Bild nicht verzögert geladen werden?
Es ist meist das größte sichtbare Element. Spätes Laden verlangsamt den Hauptinhalt, deshalb schlägt der Skill stattdessen fetchpriority auf high vor.
Brauche ich dafür eine JavaScript-Bibliothek?
Nein. Der Skill sagt, natives verzögertes Laden wird von allen modernen Browsern unterstützt und braucht kein Polyfill.
Was ist, wenn unklar ist, ob ein Bild außerhalb des Bildschirms liegt?
Der Skill sagt, kein fehlendes verzögertes Laden zu melden, außer das Bild liegt eindeutig außerhalb oder ist nicht kritisch.
Details
Originalbeschreibung des Autors
Use when reviewing image assets, markup, and CDN or build transforms related to Lazy load offscreen images. Check encoded size, rendered size, loading strategy, and above-the-fold impact together. Missing `loading='lazy'` is only a valid finding when you can reasonably tell the image is offscreen or non-critical.
Beliebtheit
- GitHub-Sterne
- 75k
- Platz im Ranking
- #2958
- Lizenz
- MIT
- Aktualisiert
- 31.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
frontendchecklist
75kPrüft Frontend-Code und Live-Seiten anhand von über 380 Regeln zu Barrierefreiheit, Geschwindigkeit, SEO und Sicherheit, mit einem Kommandozeilenwerkzeug.
frontend-checklist-global
75kPrüft ein Frontend-Projekt gegen alle 386 Regeln der Front-End Checklist und gibt für jedes gefundene Problem eine konkrete Lösung.
404-page
75kPrüft, ob deine Seite für fehlende Adressen hilfreiche Links anbietet und einen echten 404-Statuscode zurückgibt, damit verirrte Besucher ihren Weg finden.
about-page
75kPrüft, ob deine Website eine klare Über-uns-Seite hat, die erklärt, wer sie betreibt, um Vertrauen bei Besuchern und Suchmaschinen aufzubauen.
Ähnliche Skills
angular-developer
280kHilft deinem Agenten bei Angular-Code und gibt Tipps zur Projektstruktur. Nützlich für neue Projekte, einzelne Code-Teile sowie Performance und Barrierefreiheit.
frontend-a11y
280kHilft deinem Agenten, Weboberflächen für alle zugänglich zu machen. Sorgt dafür, dass Websites und Apps gut mit Screenreadern und Tastaturnavigation funktionieren.
frontend-patterns
280kLässt deinen Agenten moderne Muster in der Frontend-Entwicklung anwenden. Optimiert Performance, verwaltet State und folgt Best Practices für React und Next.js.