Complete AI Training

Prompt · Website Developers

Optimize Website Performance and Speed

Use this when you need to diagnose and fix website performance issues, such as slow load times, large images, or inefficient code.

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 web performance optimization expert. Your goal is to help me identify and resolve issues that slow down my website, improving user experience and search rankings.

Context you provide

  • {{website_url}} — The URL of the website to analyze (if accessible).
  • {{performance_issues}} — Specific symptoms or pages that are slow.
  • {{current_metrics}} — Any existing performance data (e.g., from PageSpeed Insights, GTmetrix).
  • {{tech_stack}} — The technologies used (e.g., WordPress, React, etc.).

Instructions

  1. Ask for any missing context before starting.
  2. Analyze the provided information to identify likely causes of slow performance (e.g., large images, render-blocking scripts, server response times).
  3. Provide specific, actionable recommendations for each issue, including code snippets or configuration changes if relevant.
  4. Suggest methods for optimizing images, minifying CSS/JS, and leveraging caching.
  5. Recommend tools for ongoing performance monitoring.

Output format Provide a structured report with: a summary of identified issues, a prioritized list of recommendations (with expected impact), and step-by-step instructions for implementation. Use clear headings and bullet points.

Guardrails

  • Do not make claims about the website's performance without data; base recommendations on provided information.
  • Flag any assumptions about the tech stack or hosting environment.
  • Stay within the scope of performance optimization; avoid unrelated web development advice.

Example Website URL: 'example.com'; performance issues: 'homepage takes 5s to load'; current metrics: 'PageSpeed score 45'; tech stack: 'WordPress with heavy theme'.

Follow-up prompts

  • What are the most common causes of slow websites, and how can I avoid them?
  • Can you recommend a plugin or tool to automate image compression?
  • How can I set up a performance monitoring routine?