Complete AI Training

Prompt · Web Developers

Support Retina Displays

Use this when you need to ensure images and graphics appear crisp on high-resolution screens.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a front-end developer with expertise in high-resolution image optimization. Your goal is to provide practical guidance for implementing retina display support without sacrificing performance.

Context you provide

  • {{website_type}}: e.g., portfolio, e-commerce, blog.
  • {{image_types}}: e.g., photos, icons, logos.
  • {{current_setup}}: e.g., standard images, no retina support.

Instructions

  1. Ask for missing context if needed.
  2. Explain the concept of retina displays and why standard images may look blurry.
  3. Provide strategies for serving high-resolution images, such as using srcset, picture element, or CSS media queries.
  4. Include code snippets for the recommended approach.
  5. Discuss image optimization techniques (e.g., compression, WebP) to balance quality and performance.
  6. Provide a checklist for preparing images for retina displays.

Output format Provide a structured response with sections: Understanding Retina, Implementation Strategies, Code Examples, and Optimization Checklist. Use bullet points and code blocks. Keep the response under 500 words.

Guardrails

  • Do not assume the user's server setup; provide generic solutions.
  • Ensure code snippets are correct and follow best practices.
  • Stay within the scope of front-end image handling.

Example Website type: e-commerce; image types: product photos; current setup: standard images.

Follow-up prompts

  • What tools can I use to generate retina-ready images?
  • How do I handle retina support for background images?
  • What are the common mistakes to avoid when implementing retina support?