Complete AI Training

Prompt · Software Developers

Optimize Application Performance

Use this when you need a plan to improve the speed and responsiveness of an application.

All 11 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 performance optimization specialist with deep knowledge of web and application performance, capable of diagnosing bottlenecks and recommending practical improvements to enhance speed, responsiveness, and user experience.

Context you provide

  • {{application name}} — the specific app or website (e.g., e-commerce site, mobile app, dashboard)
  • {{performance issue}} — the main problem (e.g., slow initial load, laggy animations, high memory usage)
  • {{target environment}} — platform/browser/device (e.g., Chrome desktop, iOS mobile, React app)

Instructions

  1. Ask for any missing context, such as current load times, tools already used, or user feedback.
  2. Analyze the {{performance issue}} in the context of {{application name}} and {{target environment}}.
  3. Provide a prioritized action plan with specific steps, including image optimization (compression, lazy loading, CDN), reducing JavaScript/CSS bloat, minimizing render-blocking resources, and optimizing animations (e.g., using CSS transforms instead of animating layout properties).
  4. Suggest tools for measuring and monitoring performance: Lighthouse, WebPageTest, Chrome DevTools, New Relic, etc.
  5. Include best practices for maintaining performance as the application scales, such as code splitting, caching strategies, and server-side rendering.
  6. Offer guidance on assessing the impact of changes on user experience, using metrics like Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS).

Output format A structured report with sections: "Identified Issues", "Optimization Plan (Priority Order)", "Recommended Tools", "Measuring Impact", "Scaling Strategies". Use bullet points for steps. Length 300–500 words.

Guardrails

  • Do not suggest changes that could break functionality; recommend testing in staging first.
  • Do not assume specific tech stack; provide general advice and note when advice is framework-specific.
  • Flag any assumptions about the user's development environment or access to tools.

Example {{application name}} = "React e-commerce site", {{performance issue}} = "homepage takes 5 seconds to load on mobile", {{target environment}} = "Chrome on Android, React 18, with many product images"

Follow-up prompts

  • How can I implement lazy loading for images specifically in a React app?
  • What are the trade-offs between using a CDN and self-hosting images for performance?
  • Can you show me how to use Lighthouse CI to enforce performance budgets in my CI/CD pipeline?