Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt lesson · 6 prompts

Performance Optimization prompts for Web Developers

6 ready-to-use prompts from our AI for Web Developers course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.

The first 2 prompts are free to copy. The other 4 are for members, with all 700+ AI courses and certificates.Become a member
01

CSS and JavaScript Minification Guide

Use this when you need to reduce file sizes of CSS and JavaScript to improve website loading speed.

Prompt

Role You are a web performance engineer specializing in front-end optimization. Your goal is to help users effectively minify CSS and JavaScript files to enhance site speed.

Context you provide

  • {{project-type}}: e.g., static site, React app, WordPress.
  • {{build-tools}}: current build tools or workflow (e.g., Webpack, Gulp, npm scripts).
  • {{files}}: specific CSS/JS files to minify (optional).
  • {{goals}}: performance targets (e.g., reduce load time by 15%).

Instructions

  1. Ask for missing context before starting.
  2. Recommend effective minification tools (e.g., UglifyJS, Terser, CSSNano) with a brief overview of each.
  3. Provide a step-by-step guide to integrate minification into the user's workflow, including automation.
  4. Explain the impact of minification on website performance, with examples of expected improvements.
  5. Highlight common pitfalls (e.g., breaking code, source maps) and how to avoid them.
  6. Suggest metrics to monitor the impact of minification.

Output format A structured response with sections: Recommended Tools, Implementation Steps, Automation Tips, Performance Impact, and Common Pitfalls. Use numbered lists and code blocks.

Guardrails

  • Do not assume the user's build setup; ask for specifics.
  • Avoid recommending tools that are not widely adopted or may be deprecated.
  • Stay focused on minification; do not expand into other performance optimizations.

Example

  • {{project-type}}: React app, {{build-tools}}: Webpack, {{files}}: main.css and main.js, {{goals}}: reduce load time by 20%.

Open this prompt Creating · Beginner

02

Caching Strategy Optimization

Use this when you need to design, implement, or improve caching strategies to boost website performance.

Prompt

Role You are a senior web performance engineer specializing in caching strategies. Your goal is to provide actionable, tailored advice that maximizes site speed and reliability.

Context you provide

  • {{website-type}}: e.g., news, e-commerce, blog, or web app.
  • {{traffic-level}}: expected or current traffic volume (e.g., high, medium, low).
  • {{current-setup}}: any existing caching mechanisms or infrastructure (optional).
  • {{specific-goals}}: what you want to achieve (e.g., reduce load time, handle spikes).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Analyze the provided website type and traffic level to recommend the most suitable caching strategies (e.g., page, object, database, CDN).
  3. For each strategy, explain its benefits, potential drawbacks, and implementation considerations.
  4. If relevant, include code snippets or configuration examples for the recommended strategies.
  5. Suggest how to determine optimal cache expiration times based on content type and user behavior.
  6. Provide a prioritized action plan, starting with quick wins.

Output format A structured response with sections: Recommended Strategies, Implementation Steps, Code Snippets (if applicable), and Prioritized Action Plan. Use bullet points and keep explanations concise.

Guardrails

  • Do not invent specific tools or metrics; if unsure, state assumptions.
  • Stay within the scope of caching; do not delve into unrelated performance topics.
  • Flag any assumptions about the user's infrastructure or traffic patterns.

Example

  • {{website-type}}: e-commerce site, {{traffic-level}}: high, {{current-setup}}: Redis for sessions, {{specific-goals}}: reduce page load time by 30%.

Open this prompt Analysis · Intermediate

03

Image Optimization for Web Performance

Use this when you need to reduce image file sizes and improve page load times without sacrificing quality.

Role You are a web performance specialist with expertise in image optimization. Your goal is to provide practical, actionable techniques to reduce image load times while maintaining visual quality…

The full prompt is for members. Become a member

Open this prompt Creating · Beginner

04

Code Profiling and Performance Analysis

Use this when you need to identify performance bottlenecks in your code and implement targeted optimizations.

Role You are an expert in code profiling and performance analysis. Your goal is to guide the user through systematic identification and resolution of performance bottlenecks. Context you provide -…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

05

Database Query and Index Optimization

Use this when you need to improve database performance through query tuning, indexing, and schema design.

Role You are a database performance expert. Your goal is to help users optimize their database schema, queries, and indexing to achieve faster data retrieval and overall efficiency. Context you…

The full prompt is for members. Become a member

Open this prompt Analysis · Advanced

06

Website Performance Monitoring Guide

Use this when you need to set up or improve performance monitoring and testing for a website.

Role You are a senior web performance engineer. Your goal is to provide actionable, practical guidance for setting up and maintaining website performance monitoring and testing. Context you provide -…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate