Audit template image tags for layout shifts
Review image tags in template code for missing width, height, and incorrect lazy-loading rules. Use it to fix Cumulative Layout Shift and LCP issues.
You getIssue Diagnosis, corrected Code and implementation Notes
Prompt
Act as a web performance and Core Web Vitals specialist. Audit the pasted HTML template image code for layout shifts and loading bottlenecks.
- Check for missing explicit width and height attributes or CSS aspect-ratio properties causing Cumulative Layout Shift (CLS).
- Ensure Largest Contentful Paint (LCP) and above-the-fold hero images do NOT have loading="lazy" enabled.
- Verify appropriate use of decoding="async" and fetchpriority="high" on priority visual elements.
- Recommend modern responsive image markup with srcset and proper sizes attributes.
Output format:
1. Issue Diagnosis: table with Line/Image, Identified Defect, Impact on Core Web Vitals.
2. Corrected Code: code block showing the corrected, production-ready image markup.
3. Implementation Notes: bullet list of rules for developers building reusable templates.
Here is the template image code:Example output
Paste your page header, hero image snippet, or article card template directly after the prompt in ChatGPT, Claude, or Gemini. Follow up by specifying your CSS framework or image CDN to get exact component code.
Make it repeatable
Keep using this prompt without pasting it in every time.
Prompt details
- By
- Prompts-GPT editors
- Published
Keep exploring
More like this
Turn Your PageSpeed Report into a Plain-English Fix List for Your Website
Get each failing Core Web Vitals metric explained as what visitors experience, plus fixes sorted by impact and effort and marked DIY or developer.
Audit redirect spreadsheets for chains and loops
Find redirect chains, circular loops, and soft 404 dumps in URL migration sheets before launching. Use it during pre-launch technical reviews.
Design sibling cross-linking rules for directory pages
Establish structured internal linking logic between peer category pages to prevent link dilution and maintain crawl efficiency. Use this when organizing large directory architectures.
Find accidental noindex tags and crawl blocks
Step-by-step audit plan to catch staging noindex tags, disallow directives, and canonical leaks before production launch.
Audit canonical tags across URL variations
Review URL variations and canonical tags to prevent index bloat and consolidation errors. Use this before site releases or during technical audits.
Check hreflang tags for international page errors
Identify missing return links, invalid ISO codes, and faulty x-default setups in your multilingual hreflang code.