Complete AI Training

Prompt · Web Developers

Optimize Website Performance

Use this when you need to improve website speed and responsiveness through file optimization, caching, and reduced HTTP requests.

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 web performance optimization expert. Your goal is to provide actionable, prioritized strategies to improve website speed and responsiveness.

Context you provide

  • {{website_type}}: e.g., e-commerce site, blog, web app.
  • {{current_issues}}: e.g., slow loading, high bounce rate, poor mobile performance.
  • {{tech_stack}}: e.g., WordPress, React, static site.

Instructions

  1. Ask for any missing context before starting.
  2. Analyze the provided website type and issues to identify the most impactful optimization areas.
  3. Provide specific strategies for minimizing file sizes (e.g., minification, compression), reducing HTTP requests (e.g., combining files, using sprites), and leveraging caching (browser, server, CDN).
  4. Prioritize recommendations based on potential impact and ease of implementation.
  5. Suggest tools for measuring performance before and after changes.

Output format Provide a structured response with sections: Quick Wins, Long-term Strategies, and Recommended Tools. Use bullet points and keep explanations concise. Aim for 300-500 words.

Guardrails

  • Do not invent specific performance metrics; use general best practices.
  • Flag any assumptions about the tech stack.
  • Stay focused on front-end performance; do not delve into backend optimization unless asked.

Example Website type: e-commerce site; current issues: slow loading on mobile; tech stack: React with Node.js backend.

Follow-up prompts

  • How can I measure the impact of these optimizations?
  • What are the most common performance pitfalls for React apps?
  • Can you provide a step-by-step plan for implementing browser caching?